My forms work perfectly in Firefox & Internet Explorer and correctly submit the information to the appropriate mySQL database, however in Chrome and Safari it's not submitting any information. It seems to be treating the submit button as a link and ignoring
all of the code indicating it's a form with required fields as it links to the page without any of the errors that would otherwise occur.
I haven't found anything online to indicate that my code wouldn't work in Chrome & Safari. Any ideas?
My intention is to submit the current page and then go to the target page. What would be the correct way to do this for all browsers?
Use Push Button Instead of hyperlink. Because Hyperlink direct Submits the target page. But in case of push button first current page is submitted then target page is submitted or page we are redirecting to.
But I haven't been able to find instructions for using an image in place of the standard ugly gray button that differs from my original code. Would you mind telling me how to do that?
But I haven't been able to find instructions for using an image in place of the standard ugly gray button that differs from my original code. Would you mind telling me how to do that?
Hi Chaya,
You can use ImageButton also in your scenario...That works also same...
Regards, Mayank
Marked as answer by ChayaCooper on Jan 05, 2012 03:53 AM
ChayaCooper
Member
121 Points
65 Posts
Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 04, 2012 12:54 AM|LINK
My forms work perfectly in Firefox & Internet Explorer and correctly submit the information to the appropriate mySQL database, however in Chrome and Safari it's not submitting any information. It seems to be treating the submit button as a link and ignoring all of the code indicating it's a form with required fields as it links to the page without any of the errors that would otherwise occur.
I haven't found anything online to indicate that my code wouldn't work in Chrome & Safari. Any ideas?
</form><form action="" method="post"> </form>safari
mayankpathak...
Contributor
3643 Points
844 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 04, 2012 04:37 AM|LINK
Hi there
a href will submit your flatter.cshtml not your current page.... When we use push button it first submits the current page then taget page.
ChayaCooper
Member
121 Points
65 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 04, 2012 05:42 AM|LINK
Would you mind clarifying because it's working properly in Firefox & IE?
My intention is to submit the current page and then go to the target page. What would be the correct way to do this for all browsers?
mayankpathak...
Contributor
3643 Points
844 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 04, 2012 08:15 AM|LINK
Use Push Button Instead of hyperlink. Because Hyperlink direct Submits the target page. But in case of push button first current page is submitted then target page is submitted or page we are redirecting to.
ChayaCooper
Member
121 Points
65 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 04, 2012 02:02 PM|LINK
That worked :-)
But I haven't been able to find instructions for using an image in place of the standard ugly gray button that differs from my original code. Would you mind telling me how to do that?
mayankpathak...
Contributor
3643 Points
844 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 05, 2012 03:16 AM|LINK
Hi Chaya,
You can use ImageButton also in your scenario...That works also same...
ChayaCooper
Member
121 Points
65 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 05, 2012 03:53 AM|LINK
That worked :-D
Thank you so much!
mayankpathak...
Contributor
3643 Points
844 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 05, 2012 03:57 AM|LINK
You are Welcome
ChayaCooper
Member
121 Points
65 Posts
Re: Form not submitting in Chrome or Safari, but works in Firefox & IE
Jan 05, 2012 04:21 AM|LINK
:-D