I have a page page1.php (lets say) and there are some text area boxes on this page like –
<form name="viewRun" action="/auto/page2.php" method="post">
<td><textarea name="qatxt1 " rows="2" cols="20"></textarea></td>
<td><textarea name="autotxt1 " rows="2" cols="20"></textarea></td>
<input type="submit" name="save" value='Submit' style="background-color:#49743D;font-weight:bold;color:#ffffff;">
Now, users fills the text area boxes on page1.php and clicks Submit button and page2.php is loaded. The problem is that I am unable to retrieve the comments that user put in these text area boxes on page2. php. I have the following code on page2.php –
<?php
$varTemp= $_POST["qatxt1 "];
?>
$varTemp is just blank.
Your help is highly appreciated as always !!
You can’t have spaces in names.
Should be:
Then you can read it like:
Reference: http://www.w3.org/TR/html4/types.html#type-cdata