I have a value that I want to pass to a script for displaying on it - prog.php
The value is held in $detail
$detail = "this is the message";
I am using a button in a form to trigger the script.
<form name="detail" action ='prog.php' method = 'POST'>
<input type="hidden" name="x_detail" value= <?php echo "$detail"; ?> >
For some reason when I display the value in prog.php I only get the first word of the
value.
$detail = $_POST['x_detail'];
and later echo $detail;
produces "this"
Why is this and how can I have the whole sentence passed ?
Thanks