开发者

Why is the post not coming through on a PHP form Post

Ok so this is kind of got me stumped. I have two installs of a shopping cart on my server

First and Second

as you can see on t开发者_开发技巧he top of both pages I am debugging using print_r

echo "<pre>".print_r($_POST, true)."</pre>";

and its blank on both. If you enter anything into the (Returning Customer) email and password field for the first link you can see the $_POST array with the data you entered..that works great. But on the second form which has the same code other then the styling difference nothing appears in the $POST.

why does one page work and not the other...is there something in the source that i am missing..


In the second example, there are two forms with id="login". One is at the top of the page, and one in the middle of the page. The submit is done by a $(#login"").submit(); call on the button, which will select the first form with id="login". Since ids are supposed to be unique, try using different ids for each form. Or use something like $(this).closest('form').submit();

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜