View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Dynamically populated form for Insert?? It can't be this hard.

Thread began 10/24/2009 1:50 am by troyd | Last modified 10/27/2009 3:43 pm by troyd | 988 views | 4 replies


I might be going in the wrong direction here, but I have tried this so far with minor results.

<form id="form1" name="form1" method="post" action="">
<select name="select_id" id="select_id">
<option value="">Select ID</option>
do {
<option value="<?php echo $row_rs['id']?>"><?php echo $row_rs['name']?></option>
} while ($row_rs = mysql_fetch_assoc($rs));
$rows = mysql_num_rows($rs);
if($rows > 0) {
mysql_data_seek($rs, 0);
$row_rs = mysql_fetch_assoc($rs);
<input name="name" type="text" value="<? echo $_POST['select_id']?>" />
<input type="submit" name="submit" id="submit" value="Submit" />


I do have the insert behavior and it inserts a record but does not insert anything into the field I have the hidden field assigned to.

What I ultimately want is for there to be 2 hidden fields. So the Select will provide the ID dynamically from table 1, and the two hidden fields will provide the Name and Image_Name.

When I tested it by just submitting to itself, the value of the hidden field was updated correctly. However not with the name associated with the id as I would like it to.

SO, how can I update the values in the hidden fields and at the same time post them to the new table? AND exchange the ID value from table 1 with the associated Name value from table 1 as well?

Any thoughts?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...