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

02-03-2005, 07:39 PM
<form id="veaccounts" name="veaccounts" action="">
<table align="center" border="1" width="200px">
<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>
<input type="submit" value="search">
<table border="1px" align="center">
<td>First Name</td>
<td>Last Name</td>

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.

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.

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

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....