Page 1 of 1

How to exclude button value from GET method

Posted: Thu Oct 09, 2008 6:04 am
by Sindarin
In my submission form I use GET method to retrieve the 'page' value, this is what I only need.
However, after submitted the url looks like this,
It passes the 'paging' value too which I don't need.

This is my form

Code: Select all

<form id="form1" name="form1" method="get" action="index.php">
  <label>
  <input name='page' type='text' id='page' size='3' value='2'/> of 2
  </label>
  <label>
  <input type='submit' name='paging' id='paging' value='Go' />
  </label>
</form>
I want it to show like this,
How can I exclude the submit button 'paging' that has the 'Go' value?

Re: How to exclude button value from GET method

Posted: Thu Oct 09, 2008 6:11 am
by onion2k
Does it matter? Just ignore it.

Re: How to exclude button value from GET method

Posted: Thu Oct 09, 2008 2:37 pm
by kaszu
Remove name attribute from submit button.

Re: How to exclude button value from GET method

Posted: Fri Oct 10, 2008 1:17 am
by Sindarin
Thanks, that worked.