I am kind of new to PHP so this might be an easy question but I have searched the internet and php.net for the solution with no luck. I have a form that the user puts information into. I pass there reponses to a confirmation page where their responses are reprinted out for them to confirm.
So this is what my confirmation page looks like.
php:
I then basically echo the variables. (When I echo them it prints out the whole string.
Then I pass them in a hidden form to added.php
The problem that I am having is that if there is a string instead of just a word only the first word of the string gets passed to added.php.
So if their responses are
certified
Teacher
Wilson Middle School
etc
the only things that will get passed are
certified
Teacher
Wilson
How can I pass the whole string to added.php. THe part that I am the most confused about is when I echo their responses back for them to see on confirmation.php you can see the whole string. But I changed the "hidden" form boxes to regular text and echo'd them into the text box but again only the first word out of the string would show up.
I tried urlencode but that seems a little much for just passing a few string variables.
What am I missing.
So this is what my confirmation page looks like.
php:
Code:
<?
$type = $_POST['Type'];
$position = $_POST['Position'];
$site_location = $_POST['Site_Location'];
$closing_date = $_POST['Closing_Date'];
$status = "open";
$special_instructions = $_POST['Special_Instructions'];
?>
I then basically echo the variables. (When I echo them it prints out the whole string.
Then I pass them in a hidden form to added.php
Code:
<p align="center"><form method="post" action="Added.php">
<p><input type="hidden" name="Type" value='<?echo $type?>'>
<p><input type="hidden" name="Position" value= <?echo $position?>>
....
<p align="center"><input type="submit" value="submit"</p>
The problem that I am having is that if there is a string instead of just a word only the first word of the string gets passed to added.php.
So if their responses are
certified
Teacher
Wilson Middle School
etc
the only things that will get passed are
certified
Teacher
Wilson
How can I pass the whole string to added.php. THe part that I am the most confused about is when I echo their responses back for them to see on confirmation.php you can see the whole string. But I changed the "hidden" form boxes to regular text and echo'd them into the text box but again only the first word out of the string would show up.
I tried urlencode but that seems a little much for just passing a few string variables.
What am I missing.