"Submit" variable

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
denhamd2
Forum Newbie
Posts: 12
Joined: Thu Jun 10, 2004 9:59 am

"Submit" variable

Post 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
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

A little more information might be helpful. And maybe some code that you're having the problem with...
User avatar
maqmus
Forum Commoner
Posts: 30
Joined: Mon Mar 08, 2004 1:10 pm

Post by maqmus »

Change your submit buttom to:

Code: Select all

<input type="button" name="Button" value="Submit" onClick="document.form_name.submit()">
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that'd pass "Button" as a variable then, maqmus.. at least I remember it doing that..

[edit] nm.. I must be tired..
Sycor
Forum Newbie
Posts: 8
Joined: Fri Jun 11, 2004 3:54 am

Post 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();" />
Post Reply