can't redirect form on submit

lifetalk

New Member
Ok - I know I am being an idiot but I can not seem to get this form to redirect as I want it to:\[code\] <form id="post" method="post" action="" name="post" onSubmit="window.location='http://www.website.com/overview'" > <input type="hidden" name="terms-and-conditions" value="http://stackoverflow.com/questions/3852850/true"> <p class="submit"> <input id="agree" type="submit" value="http://stackoverflow.com/questions/3852850/I Agree" name="agree"> <input type="button" value="http://stackoverflow.com/questions/3852850/I Disagree" onClick="window.location='http://www.website.com'"> </p> </form>\[/code\]When the button type is "submit" it won't redirect in my PHP page. I have a feeling I am missing something obvious...Thanks!
 
Back
Top