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 < user@example.com >
Comments
Post a Comment