Hello all,
I'm thankful for such a great resource.
I'd like the visitor of the webpage to be able to click on a drop down box and choose which form they want to complete. For example:
<form>...
<tr>
<td valign="top"><select size="1" name="managment_options" onchange="showSUBaction(this.value)">
<option selected value="select">Select One</option>
<option value="unblock">Unblock</option>
<option value="reset">Reset Password</option>
<option value="new">New Account</option>
<option value="delete">Delete Account</option>
</select></td>
<td><div id="txtACTION"></div></td>
</tr>
...
<submit>
</form>
I wrote an ajax / javascript that calls the form fields that are determined by the select box above. One of the fields is a second drop down menu based on a mySQL table of User Accounts. Then they display nicely on the screen, but the form won't process. I believe it is because you can't pull form fields just using php AJAX. However, I've done similar things in the past without issues.
Is it possible to build form fields using AJAX and embed them into a form?
Thanks,
LVSoftware