Link to home
Start Free TrialLog in
Avatar of morten444
morten444

asked on

ASP Classic: Submit button not working in Crome. OK in IE and Firefox

Hi
I need some help with my ASP Classic form on this page: http://www.freiwillig-in-afrika.de

I have read different thinsg in forums  but hard to relate to some of it as I am not a programmer and it goes above my head..

Can anyone have a look
the submit line is as below

It submits to a database and that part works in IE and Firefox but in Crome it just opens the local email application as to send a mail in stead

Any idears if I can make a small alternation of this line so it works in Crome as well?






<a href="mailto:tina@xxxxxxx.org">
	    <INPUT TYPE="SUBMIT" VALUE="Submit    "tabindex="15" name="Submit"></a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mars-vie
mars-vie
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"It submits to a database " ???

maybe a simple button

<button name=submit type=submit>Submit</button>

simple input

<input name=submit value=submit type=submit>

simple a with js

<a href="javascript:document.forms[0].submit()">submit</a>
You're missing the " after Submit, IE and FF might allow it but Chrome probably is being strict. The line should be:
<INPUT TYPE="SUBMIT" VALUE="Submit" tabindex="15" name="Submit">

also, importantly, ensure you are opening and closing the <form> tag correctly, this is frequently the cause of submits acting differently across the browsers.

/ Tobzzz
Your code:
<input value="Submit    " tabindex="15" name="Submit" type="SUBMIT">

Open in new window


has trailing spaces in the Submit value input button. Remove them and you get the right code:

<input value="Submit" tabindex="15" name="Submit" type="SUBMIT">

Open in new window