POST method on WAMP
Posted by: ramprasad (203.91.193.---)
Date: April 14, 2006 09:38AM

Hi

I have installed WAMP on WIN XP. I am trying to transfer certain variables from one page to other from the form using POST method...

POST method doesnt seem to work...

Any special configs required.....? let me know...!


Regards,
Ramprasad



ALWAYS be URSELF

Options: ReplyQuote
Re: POST method on WAMP
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 14, 2006 09:43AM

post your php code so I can take a look and see what might be wrong. Are you getting any errors? what happens when you run your code? More info would make it much easier to help you.

Options: ReplyQuote
Re: POST method on WAMP
Posted by: ramprasad (203.91.193.---)
Date: April 14, 2006 09:48AM

I dont have the code right now....
but ... it doesnt display any error...
when I try to echo the variable nothing happens....
same happens when I update the variables to my database



ALWAYS be URSELF

Options: ReplyQuote
Re: POST method on WAMP
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 14, 2006 10:22AM

use $_Post['VariableNameHere']

Options: ReplyQuote
Re: POST method on WAMP
Posted by: RealNub (---.hsd1.ma.comcast.net)
Date: April 18, 2006 03:47AM

<form name='...' action='page.php' method='post'> FORM</form>
<?php
echo $_POST['variable'];
?>
or you can use
extract($_POST); and instead of $_POST['var'] you can use $var it stripts all of that
also in forms with text boxes the stuff when you hit enter shows up on the same line,
use
$message = nl2br($_POST['message']);

smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.