我有一个包含多个文本输入和 4 个文本区域的表单,名为:features, description, description2, description3
当我提交表格和 print_r($_POST); 所有值都按您的预期打印,但是当我将 jHtmlArea 或 CLE 编辑器附加到 4 个文本区域时,最后 2 个文本区域丢失了发布的数据。
<form method="post" action="index.php" enctype="multipart/form-data">
<legend>Page 1</legend>
<label>Photo</label>
<input type="file" name="image[]" multiple id="file" style="margin-bottom:15px;"/>
<label>Title (Property Type & Area)</label>
<input type="text" name="page_1_area_type" class="span8"/>
<label>Reference</label>
<input type="text" name="reference" class="span8"/>
<label>Bedrooms</label>
<input type="text" name="bedrooms" class="span8"/>
<label>Bathrooms</label>
<input type="text" name="bathrooms" class="span8"/>
<label>Plot Size</label>
<input type="text" name="plot_size" class="span8"/>
<label>Constructed Area</label>
<input type="text" name="constructed_area" class="span8"/>
<label>Terrace</label>
<input type="text" name="terrace" class="span8"/>
<label>Parking</label>
<input type="text" name="parking" class="span8"/>
<label>Price</label>
<input type="text" name="price" class="span8"/>
<label>Features</label>
<textarea id="editor1" name="features">435</textarea>
<label>Description</label>
<textarea id="editor2" name="description">34534</textarea>
<button type="button" class="btn" id="btn-step1">Page 2<i class="icon-arrow-right"></i></button>
</div>
<!-- END STEP 1 -->
<!-- STEP 2 FORM -->
<div class="step hide" id="step2">
<legend>Page 2</legend>
<label>Photo</label>
<input type="file" name="image[]" multiple id="file" style="margin-bottom:15px;"/>
<label>Property Details</label>
<textarea id="editor3" name="description2">4354354</textarea>
<div style="clear:both;"></div>
<button type="button" class="btn" id="btn-step2">Next <i class="icon-arrow-right"></i></button>
</div>
<!-- END STEP 2 -->
<!-- STEP 3 FORM -->
<div class="step hide" id="step3">
<legend>Page 3</legend>
<label>Photo</label>
<input type="file" name="image[]" multiple id="file" style="margin-bottom:15px;"/>
<label>About Title</label>
<input type="text" class="span8" value="About South West Mallorca" name="page_3_title"/>
<label>About Content</label>
<textarea id="editor4" name="description3">43534534</textarea>
<div style="clear:both;"></div>
<button type="submit" name="download" class="btn">Download PDF <i class="icon-arrow-right"></i></button>
</form>
Javascript
$(function(){
$("textarea").htmlarea();
});
任何帮助将非常感激。