Post and Get are not working, please help
Posted: Sat Jul 03, 2010 3:06 am
Hi
I have set up php mysql and apache server by installing XAMPP on my pc which is windows xp sp2. And trying to get the following code run but i am not getting the variables through the post or get why, please help me.
Thanks in advance.
my code:
<body>
<H2>Search Results</H2>
<BR>
<FORM ACTION="result.php" METHOD="POST">
Enter name, or part of the name, of the shops you wanted:
<BR>
<INPUT NAME = "name" TYPE = TEXT>
<BR>
<INPUT TYPE= SUBMIT VALUE="Search">
</FORM>
</body>
php page code: result.php
<?
echo $_POST['name'];
?>
I tried every thing like $_REQUEST['name'] and http_Post_var
but nothing is working when i click on a submit, it displaying a blank page why? where is the problem;
I have set up php mysql and apache server by installing XAMPP on my pc which is windows xp sp2. And trying to get the following code run but i am not getting the variables through the post or get why, please help me.
Thanks in advance.
my code:
<body>
<H2>Search Results</H2>
<BR>
<FORM ACTION="result.php" METHOD="POST">
Enter name, or part of the name, of the shops you wanted:
<BR>
<INPUT NAME = "name" TYPE = TEXT>
<BR>
<INPUT TYPE= SUBMIT VALUE="Search">
</FORM>
</body>
php page code: result.php
<?
echo $_POST['name'];
?>
I tried every thing like $_REQUEST['name'] and http_Post_var
but nothing is working when i click on a submit, it displaying a blank page why? where is the problem;