efrainuzco Posted February 8, 2007 Share Posted February 8, 2007 Hi everyone! I am working with PHP, and having the following problem: I have a form and a preview button, when I type anything with " " and preview it there is no problem, except when I go backwards to the form page, because everything between " " is disapeared including the quotation marks. Could you help me please? Thanks in advace. Quote Link to comment https://forums.phpfreaks.com/topic/37629-problems-with-php-and-quotation-marks/ Share on other sites More sharing options...
sayedsohail Posted February 8, 2007 Share Posted February 8, 2007 please guys add your code, so we can look at it. thanks Quote Link to comment https://forums.phpfreaks.com/topic/37629-problems-with-php-and-quotation-marks/#findComment-180016 Share on other sites More sharing options...
efrainuzco Posted February 8, 2007 Author Share Posted February 8, 2007 this is the code of the form: <html> <head> <title>Untitled Document</title> </head> <body> <form action="salida.php" method="post"> <p>Introduce datos: </p> <p> <textarea name="txtdatos" cols="80" rows="8" id="txtdatos"><?php echo $txtdatos; ?></textarea> </p> <p> <label> <input type="submit" name="Submit" value="Enviar" /> </label> </p> </form> <p> </p> </body> </html> This is the code of the preview: <html> <head> <title>Untitled Document</title> </head> <body> <?php echo $txtdatos; ?> <form id="form1" name="form1" method="post" action="entrada.php"> <label> <input type="submit" name="Submit" value="Atrás" /> </label> <input name="txtdatos" type="hidden" id="txtdatos" value="<? echo $txtdatos; ?>" /> </form> <p> </p> </body> </html> The problem is that, when I click back button, everything between " " disapears. Help please!! Quote Link to comment https://forums.phpfreaks.com/topic/37629-problems-with-php-and-quotation-marks/#findComment-180061 Share on other sites More sharing options...
wildteen88 Posted February 8, 2007 Share Posted February 8, 2007 When you press the browsers back button it doesnt resubmit data. it just goes back to the page you was last on and depending on the browser you use it will display the page according to the html - other browser may put back what you added into form fields automatically. Quote Link to comment https://forums.phpfreaks.com/topic/37629-problems-with-php-and-quotation-marks/#findComment-180064 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.