Jump to content

stripslashes in form


phpandy123

Recommended Posts

Hi!

 

I have tried to use stripslashes in a simple test form but my code doesn't remove the backslashes. Why?

 


<?php
$subject = trim(stripslashes(htmlspecialchars($_POST['subject'])));
$firstname = trim(stripslashes(htmlspecialchars($_POST['firstname'])));

$emailTo = "mymail"; 
mail("$emailTo", "$subject", "$firstname");

?>

Link to comment
https://forums.phpfreaks.com/topic/264288-stripslashes-in-form/
Share on other sites

Archived

This topic is now archived and is 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.