Hi php wizards,
I'm having problems with getting a variable to pass correctly from page1.php to page2.php.
On page1.php there is a form where a person puts in name, email, and a brief message. It is this message where I am running into problems.
On page2.php I want to see the message 'exactly' as written. That is, if the person presses the 'enter' button then I want a carrage return. What I am currently getting is one long line of what was written. A single space comes out fine (doesn't show up as a +) but not the carrage return.
I've tried urlencode and rawurlencode with no success.
$message = unlencode($_GET['message']);
Any thoughts?
Education is what you get from reading the small print.
Experience is what you get from not reading it.
I'm having problems with getting a variable to pass correctly from page1.php to page2.php.
On page1.php there is a form where a person puts in name, email, and a brief message. It is this message where I am running into problems.
On page2.php I want to see the message 'exactly' as written. That is, if the person presses the 'enter' button then I want a carrage return. What I am currently getting is one long line of what was written. A single space comes out fine (doesn't show up as a +) but not the carrage return.
I've tried urlencode and rawurlencode with no success.
$message = unlencode($_GET['message']);
Any thoughts?
Education is what you get from reading the small print.
Experience is what you get from not reading it.