i'm getting conflict between my HTML and PHP code because of quotes. Here's the situation 1-st page has an HTML code like this echo "<input name='mytext' type='text'>" then it passes the value to the next page via a POST 2-nd page has this code : echo "<input name='mytext' type='text' value=' " . $_POST['mytext'] ." '>" now , if the text is like Carl's Name Is Carol, then here's what i see in the source of the second page in my browser <input name='mytext' type='text' value='Carol\'s Name Is Carol'> so then it passes on the value as only Carol\ what do i do with this ? Thanks
you can use quotes in otherway around try this echo '<input name="mytext" type="text">' ; echo '<input name="mytext" type="text" value=" ' . $_POST['mytext'] .'">'; all the best
that will lead to the same situation if someone type something like Press the "Search" button i mean .. there should be a universal solution to all quotation problems rather than a "try to fix somehow" solution.. so i'm looking to find that solution
something tells me that i need here those "magic_quotes_gpc" things .. but i have no any idea of what they do and how to use them