0

多数のテキスト入力と 4 つのテキストエリアを含むフォームがあります。features, description, description2, description3

フォームと print_r($_POST); を送信すると、すべての値は期待どおりに出力されますが、jHtmlArea または CLE Editor を 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();
 });

どんな助けでも大歓迎です。

4

1 に答える 1

0

最初の 2 つのフィールド値を取得します。それらの name プロパティは異なります。

他の2つは同じで、唯一の違いは数字です

description[] を使用するか、フィールドの名前を完全に変更することをお勧めします。

また、DPであなたに答えました。

うまくいったかどうか教えてください。

于 2012-09-18T12:25:04.013 に答える