开发者

FORM (uses Javascript) not working in a PHP page!

I have a simple subscribe form at : http://thepanamainsider.com/sanblas/index9.php The form doesn't work, it is using JS. The same HTML code with the JS code when written in a separate HTML page ( http://thepanamainsider.com/form1.html ) works without开发者_如何学运维 any issue.

The PHP page can be downloaded from:

http://manishkungwani.com/blog/wp-content/uploads/2011/03/indexORG.zip

Please help me as to how can I make the form run?

Clarification: It doesn't work means that it is supposed to redirect to a PDF and send a mail to the user. The form.php recieving the POST request works fine, if the POST is sent from the HTML page, thus I anticipate that there is an issue with the request being sent or an issue with the validation. The button redirects to the same page!

Further Clarification: The question was bound to remain unsolved because the code that was written was too bad, another developer had used a sample page to create the current page! (bad practice) I resolved the issue by rewriting the page in only HTML and now everything works fine. Yet the closest reply has been marked the answer as the anticipated issue was VALIDATION. sorry for the waste of time. (if any :) )


you have in your php code

  document.pay1.submit();

There is no such element in your code as pay1 which is causing javascript error

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜