escaping HTML
| From: | magnus | Date: | Mon, 11 Dec 2000 11:17:47 +0000 |
| Subject: | escaping HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29654@lists.php.net to get a copy of this message | ||
Hello,
<form action="test1.php" method="post">
<input type="hidden" name="<?php print session_name(); ?>"
value="<?php
print session_id(); ?>">
<input type="submit" value="submit">
This works fine to pass SID. But I'm having a problem escaping quotes
inside
php tags. At least, I know the following is not correct.
<?php
<form action=\"test1.php\" method=\"post\">
<input type=\"hidden\" name=\"<?php print session_name(); ?>\"
value=\"<?php
print session_id(); ?>\">
<input type=\"submit\" value=\"submit\">
?>
Thanks for any help,
Magnus