Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm having some trouble with the co

Status
Not open for further replies.

mattzsimon

Programmer
Oct 4, 2007
1
BR
I'm having some trouble with the code below... it wont submit the form £¬¬ !!

the codes below are on the same html file called 'cadastro.html'

i think the problem is with the 'onsubmit'
maybe something is missing!

help please!! lol :D

----------------------------------------------
<script type="text/javascript">
function fn_envia(){
return true;
}
</script>
----------------------------------------------
<form name="f1" method="post" action="destino.asp" onsubmit="return(fn_envia());">
----------------------------------------------
<input class="botao" type="submit" name="enviar" value="Enviar">
----------------------------------------------
 
I'm assuming you have valid markup on your page? If you don't that will cause the kinds of problems you are experiencing. Use the w3c validator service.

What happens in Firefox (with the Firebug plugin installed)? The console should give you really usefull messages if it's a javascript error causing the problem.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top