The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Magento, Javascript and PHP
I’m trying to set up a page in a Magento environment with two forms: http://test.smythjewelers.com/engagement-wedding/engagement-rings.html
One at top right and one at the bottom. The top form is a traditional submit form, but the bottom I want to redirect to a Thank You/Download page:
http://test.smythjewelers.com/diamond-guide-download
I’ve set up two .js files to validate the top and bottom forms:
http://test.smythjewelers.com/skin/frontend/default/blanksj/js/engagement-rings-contact-tab.js http://test.smythjewelers.com/skin/frontend/default/blanksj/js/engagement-rings-LP-bottom.js
As well as two PHP files to send the emails:
http://test.smythjewelers.com/skin/frontend/default/blanksj/code/engagement-rings-contact-tab.php http://test.smythjewelers.com/skin/frontend/default/blanksj/code/engagement-rings-LP-bottom.php
The page with only the top form works at: http://www.smythjewelers.com/engagement-wedding/engagement-rings.html
I can’t figure out the conflicts, or the redirect.
Any suggestions?
Thank you, Charlie
I copied the Form PHP, HTML and javascript to a CodePen – [HERE](http://codepen.io/seraphzz/pen/DpKoz “CodePen”)