-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Philippe
-
-
XHTML & PHP
in PHP
When I change my HTML page containing a form to XHTML, I "must" remove the name attribute, but when I do that I can no longer read my formfields using the $_REQUEST.Is there another way to retrieve the formfields if you ommit the name attribute ?XHTML code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <title>Skelet</title> <script type="text/javascript"> </script> </head> <body onload=""> <form id="aForm" action="test.php"> <p> <input id="submitButton" type="submit" value="Click me !" /> <input id="hiddenField" type="hidden" value="hiddenValue" /> </p> </form> </body></html>
PHP-code
echo $_REQUEST["hiddenField"];
-
Get rid of them ? No, no, that's just the point I want them to stay !So I can have a textarea on the next screen with exactly the same lay-out as the previous one !!!try replacing the "\r" and "\n" characters...these 2 chars make up a carriage return. in ASP.Net I have to replace both of them to get rid of returns in a textarea -
I have a form with a textarea on it, after it is submitted I want to send a mail with that same textarea with the same value and format, carriage returns included, but the carriage returns are ommitted This is a snippet of the code I'm using
<%htmlBody = htmlBody & "<textarea>" & request.form(textAreaField) & "</textarea>"%>
I have tried replacing the vbcrlf characters with <BR> but that does not help, anyone any ideas ?
XHTML & PHP
in PHP
Posted