Page 1 of 1

"Submit" variable

Posted: Thu Jun 10, 2004 12:32 pm
by denhamd2
I am passing session variables but I don't want the "Submit" to register as a variable

would you be able to help me with an if statement to fix this?

i would much appreciate that

Posted: Thu Jun 10, 2004 1:50 pm
by Illusionist
A little more information might be helpful. And maybe some code that you're having the problem with...

Posted: Fri Jun 11, 2004 1:50 am
by maqmus
Change your submit buttom to:

Code: Select all

<input type="button" name="Button" value="Submit" onClick="document.form_name.submit()">

Posted: Fri Jun 11, 2004 2:16 am
by feyd
that'd pass "Button" as a variable then, maqmus.. at least I remember it doing that..

[edit] nm.. I must be tired..

Posted: Fri Jun 11, 2004 3:54 am
by Sycor
If you have no need for the Submit button to pass a variable, remove it's name attribute.

Code: Select all

<input type="submit" value="Submit" onclick="this.disabled=true; this.form.submit();" />