Hi there! I'm working on PHP, and I have the following problem: I have a form page, and then when I type something between " ", and click the preview button I can see everything alright, but when I click the back button the text between " " disapears including the " ". What could it be? Thanks in advance.
thank you very much, it really works, but my problem is that Im not using fixed text but fields which can have different content and I will never know where exactly the quotation marks are. e.g I may type either Hi, my name is "robot" Or I have a "real" problem. Thanks in advance.
A simpler way is to use ' instead of " and use them together. e.g echo 'My name is "abcd" '; If you want to change the name dynamically, im presuming you are submitting the text feild.. Simply do <?php $name = $_POST['name']; echo 'Your name is "' . $name . '"'; ?> PHP: