Post text from a text area

Stroybobbo

New Member
I have a form where a user types paragraphs into a text area and then it takes them to another page after they submit. How can I pass whatever they typed to the page after they submit? The text area might have linebreaks and if I use a query string to pass the data, it gives me an error. This is my current code to pass the field:\[code\]<?php if(isset($_POST['form'])) { $title = $_POST['title']; $body = $_POST['body']; header("SubmitForm.php?title=$title&body=$body"); ?> <html> ...html form...\[/code\]It doesn't work when the text area has line breaks in it. Thanks for the help.
 
Back
Top