Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-31-2011, 07:26 AM   PM User | #1
Buk
New Coder

 
Join Date: Feb 2010
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Buk is an unknown quantity at this point
Ajax Multiform Posting (Number of Forms Are Dynamic))

Hello everyone,
I have a form like below and a select menu. I want to post this form on the same page with ajax and jquery. I have researched serialize function and lots of thing from intrernet but i couldn't solve it. Main problem is that number of forms is not fixed, it is dynamic. Can anybody help me?
Thanks in advance.

PHP Code:
<ul class="arkadaslar"> 
     
        <form method="post" name="sorular" id="sorular" target="_top" action="" enctype="multipart/form-data">
           <?php foreach($sorular as $soru):?>
               <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="70%" align="left" valign="top"><?php echo $soru['soru']; ?></td>
                    <td width="30%" align="left" valign="top">
                    
                      <label>
                      <select name="sorular[]" size="1" id="select">
                        <option>Point</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                        <option value="10">10</option>
                      </select>
                      </label>
                    </td>
                  </tr>
                </table><br /><br /> 
        <?php endforeach; ?>
                <input id="submit" type="submit" value="Submit">
               </form>
</ul>
Buk is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:36 AM.


Advertisement
Log in to turn off these ads.