-1

I have simple input type

<tr>            
            <td height="40" class="form-label">Title (required)</td>
            <td><input id="name" type="text" name="name" class="validate[required] form-control"></td>
        </tr>

The I post the form, my form post is this

<form enctype="multipart/form-data" name="frmAddFiles" id="formID" method="post" action="../wp-content/themes/twentythirteen/inc/addb.php" >

When I echo the posted data and when it writes to the SQL DB , it adds a slash anytime there is comments in the input type

$name = $_POST['name'];
echo $name;

Therefore Id I add a input such as 17" Tyres

The echo return as

17\" Tyres

Can I set the form to allow comments in input? for titles such as the above?

user2389087
  • 1,692
  • 3
  • 17
  • 39

1 Answers1

0

plz try using stripslashes ... http://php.net/manual/en/function.stripslashes.php

Raghaven 3534
  • 286
  • 1
  • 5
  • 10