开发者

can't send php form data info to other page

开发者 https://www.devze.com 2023-01-16 02:24 出处:网络
i have some php source it can send form data info to other page under mysql 4.x version. but after upgraded to mysql 5.x version, this php source can\'t send form data info to other page.

i have some php source it can send form data info to other page under mysql 4.x version.

but after upgraded to mysql 5.x version, this php source can't send form data info to other page.

i was searched many info, but don't have idea what's wrong with my php source.

i just开发者_C百科 can guess this is related with mysql upgrade and i have to edit my php source,

but lack of knowledge it very tough for me.

if anyone help me or give some hint it really appreciate!

sender page name is 'index.php' and i was uploaded to pastebin site

http://pastebin.com/3Sg7SyWV

and form data receiver page is 'check_form.php' and i was uploaded to pastebin site also.

http://pastebin.com/WEx5tEn2

for several day i was search and search but lack of my knowledge about php and mysql

it very hard to resolve.

Thanks in advance


The following will probably solve your question:

In check_form.php change:

$order_p1;
$order_p1_ea;
etc.

To:

$_POST['order_p1'];
$_POST['order_p1_ea'];
etc.

Along with upgrading MySQL on your server, most likely register_globals was also turned off.


<form method="post" name="morningform" action="./form_order/s_order_check.php" onSubmit="return orderCheck(this);">

Well, according to this line of code taken from the index.php, your receiver page isn't 'check_form.php'. Was it a typo on your question and is this the intended behaviour (and the 2nd pastebinned page is actually the s_order_check.php) or did you forget to change the action part of the form?

0

精彩评论

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