I created a input field in HTML, passed the value into PHP. When user provides a name with ' (single quotation) in it my script is breaking. Upon debugging I found out PHP was issue. Can any one show me how to accept ' (single quotation) and " (double quotation) Below is my code:
HTML:
<label>Name: </label><input type="text" name="v1" id="text_input" size="30" required/><br><br>
PHP:
$v1_name = $_POST["v1"];
FYI: Its not sql injection. I need to send that quote as string.