...

View Full Version : form acting like a get instead of a post...



dottedquad
02-03-2005, 07:39 PM
<form id="veaccounts" name="veaccounts" action="">
<table align="center" border="1" width="200px">
<tr>
<td>
<form id="searchlimit" name="searchlimit" action="admin.php?ICD=veaccounts&SectionID=listaccounts&ListID=<?php $_GET['ListID'] ?>" method="post">
Show per page
<select name="limitlist">
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
<option value="35">35</option>
<option value="40">40</option>
</select>
<input type="submit" value="search">
</form>
</td>
</tr>
</table>
<table border="1px" align="center">
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Username</td>
<td>Disabled</td>
<td>Options</td>
</tr>
<?php
//viewaccounts($_GET['ListID']);
?>
</table>
</form>

for some reason my form is acting like a get instead of a post. I set the action and the method to post but it's still acting like a get. Searchlimit limit is the form that i'm having the problem with.

dottedquad
02-03-2005, 08:16 PM
anyways i figured out the problem, I have nested forms and since the first form action is null it's assuming get.

hemebond
02-03-2005, 09:11 PM
Just in case you don't know, you can't have nested forms.

whizard
02-05-2005, 12:34 AM
Also, adding method="post" or method="get" is a great way to make sure it does what you want it too....

Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum