Hide form submit button value
Hide form submit button value
am 17.04.2008 09:28:33 von k3pp0
Hello.
Here's my example form:
When submitting this form with the specified GET method you'll get an
URL like this (http://foo.bar/form.php being the form's URL):
http://foo.bar/form.php?radio_example=radio1_val&submitform= caption
Now I want to avoid that the submit button's value is also passed to
the URL, so I would only get this URL when submitting the form:
http://foo.bar/form.php?radio_example=radio1_val
Is this possible?
Re: Hide form submit button value
am 17.04.2008 10:43:48 von Erwin Moller
k3pp0 schreef:
> Hello.
>
> Here's my example form:
>
>
>
> When submitting this form with the specified GET method you'll get an
> URL like this (http://foo.bar/form.php being the form's URL):
> http://foo.bar/form.php?radio_example=radio1_val&submitform= caption
>
> Now I want to avoid that the submit button's value is also passed to
> the URL, so I would only get this URL when submitting the form:
> http://foo.bar/form.php?radio_example=radio1_val
>
> Is this possible?
Hi,
Leave out the name of the submitbutton.
I think only named formelements are actually send.
I must add I cannot see any reason to leave that part out, but well...
that is just me.
Regards,
Erwin Moller
Re: Hide form submit button value
am 17.04.2008 11:48:09 von Guillaume
Erwin Moller a écrit :
> I think only named formelements are actually send.
I confirm, plus I add that it's not PHP related at all ;)
Regards,
--
Guillaume
Re: Hide form submit button value
am 17.04.2008 12:06:33 von Captain Paralytic
On 17 Apr, 10:48, Guillaume wrote:
> Erwin Moller a =E9crit :> I think only named formelements are actually sen=
d.
>
> I confirm, plus I add that it's not PHP related at all ;)
>
> Regards,
> --
> Guillaume
Hey Guillaume, that's Jerry's job!
Re: Hide form submit button value
am 17.04.2008 21:22:09 von Michael Fesser
..oO(Erwin Moller)
>> When submitting this form with the specified GET method you'll get an
>> URL like this (http://foo.bar/form.php being the form's URL):
>> http://foo.bar/form.php?radio_example=radio1_val&submitform= caption
>>
>> Now I want to avoid that the submit button's value is also passed to
>> the URL, so I would only get this URL when submitting the form:
>> http://foo.bar/form.php?radio_example=radio1_val
>>
>> Is this possible?
>
>Hi,
>
>Leave out the name of the submitbutton.
>I think only named formelements are actually send.
>
>I must add I cannot see any reason to leave that part out, but well...
It keeps the URL shorter and is not really necessary for the form
processing.
Micha
Re: Hide form submit button value
am 18.04.2008 10:16:14 von Alexey Kulentsov
k3pp0 wrote:
> Now I want to avoid that the submit button's value is also passed to
> the URL, so I would only get this URL when submitting the form:
> http://foo.bar/form.php?radio_example=radio1_val
>
> Is this possible?
Just drop this control before submitting: