You have to escape " if you are using them in an echo statement started with a ".
Example:
echo "<input type="button">"
in the example above PHP thinks the string stops after the type=", because it treats a string from the " to another ". therefore you will get an error with the following statemnt. To correct that problem, you must escape your quotes.
echo "<input type=\"button\">".
This will print the statement correctly. the \" will print as a " in HTML when PHP is done parsing through the code. read the section on escaping characters in the PHP manual.
For your problem, this is the correct way to write the php script
<? echo "<form>
<input type=\"button\"
value=\" Come Back \"
onClick=\"history.back()\">
</form>";?>
That will print out the form correctly.
Hope this helps
-Paul Reisdorf
preisdor@calpoly.edu
giulio wrote:
I have a problem. What can I use instead of --" "-- in a PHP script?
The follow one is not my problem but only an example...
WRONG PHP SCRIPT
<? echo "<form>
<input type=button
value=" Come Back "
onClick=history.back()>
</form>";?>
NOT RIGHT FOR ME IT PRINT ONLY Come
<? echo "<form>
<input type=button
value=Come Back
onClick=history.back()>
</form>";?>