Jump to content

PHP Backslash Errors


Hartley

Recommended Posts

I'm having some problems, particularly with a form verification page I wrote. I can zoom right into the problem area:

[code]<input type=hidden name="rname" value="<?php echo addslashes($rname); ?>">
<input type=hidden name="age" value="<?php echo addslashes($age); ?>">
<input type=hidden name="email" value="<?php echo addslashes($email); ?>">[/code]

Even with the addslashes, if anyone uses double quotes, it will still register that as the end of the value segment, and when the form is inserted into the database, it only goes up to that first quote. Is there something I'm doing wrong?

Thanks in advance.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.