Hi,
I've created a form in PHP that is controlled by a JavaScript expand/contract system. You can see what I've got by going to
http://www.window.auckland.ac.nz/proposal.html
And clicking the 'OnSite' link near the top to go the the form I'm having difficulties with.
I've got some brief if statements checking that the required fields were filled out after the 'Review' button is pushed, and if not, the form reloads with what the user previously entered into the fields. The issue is that if someone hits the 'enter' button when writing something in the textarea boxes to start a new line in the textarea box, after which if you hit the 'Review' button the form fails to load! It seems such a strange thing to trip everything up.
An example of the code to catch the POST information is below:
PHP Code:
<textarea name=postal_address rows=4>
<?php if ($_POST['postal_address'] !="") {
echo $_POST['postal_address'];
} ?>
</textarea>
I'm wondering if there is a PHP function that would help in this situation. i've tried the strip_tags, and nlbr to no avail.
Luke