forms - Browsers changing <input> value! -


so, have simple form:

<form action="ajaxemail.php" id='email_form' method="post" target="_blank" enctype="application/x-www-form-urlencoded">  <p>  <label for="email_from">from:</label>  <input type="text" id="email_from" name="from" size="42" value= "user name<user@example.com>" /><br />  <label for="email_body">message body</label><br />  <textarea id="email_body" name="body" rows="10" style="width: 100%"></textarea>  <input type="button" value="submit" onclick="$('email_form').submit(); bringforth(email_div,false);"/>  </form> 

it supposed do, submits body of text e-mailed me. problem comes from. "user name" entire "<user@example.com>" being stripped off. therefore, unable reply. using print_r($_request) shows browser stripping off before posting.

i'm sure there simple reason this, simple solution, life of me can't find it. i've tried changing enctype no avail.

thanks in advance, dave

try escaping < , > symbols - "user name &lt; user@example.com &gt;


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -