Jump to content

Philippe

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Philippe

  1. the XHTML1 spec says thisI cannot find where it says that name is depreciated for input.http://www.w3.org/TR/xhtml1/
    Damn :)You're right, my code passes the validator, I must off had a weak moment there :) Can I delete my topic ? :)This is a bit complicated, you can use it with input and not with other elements ... anyway thanks for pointing this out to me !
  2. 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"];

  3. 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

    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 !!!
  4. 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 ?

×
×
  • Create New...