bx93 0 Report post Posted October 1, 2004 I want to design a form to get the feedback from the visitors. However, I meet some problem:Assume the form is: <form action="record_ly.php" target="_self" method="post" name="formguestbook" onsubmit="java script:return affirmNoBlank();"> <tr class="guestbook_list"> <td height="20" align="right">Topic: </td> <td><input class="guestinput" type="text" name="topic"> <font color="#FF0000">*</font></td> </tr> <tr class="guestbook_list"> <td height="20" align="right">E-mail:</td> <td><input class="guestinput" type="text" name="email" onBlur="CheckEmailBasic(this, 'Email box')"> <font color="CC3300">(Required if you want the response!)</font></td> </tr> <tr class="guestbook_list"> <td width="24%" height="20" align="right" valign="top">Content:</td> <td> <textarea class="guesttext" rows="10" name="content"></textarea> </td> </tr> <tr class="guestbook_list"> <td width="24%" height="30"></td> <td> <input type="submit" name="Submit" value="Submit" class="input_button"> <input type="reset" name="Reset" value="Reset" class="input_button"> </td> </tr> </form>There is some operation in record_ly.php. However, when I try the script. The paper remain at the record_ly.php and could not return to the form. What should I do if I want to remain at the form?Thanks in advance. Share this post Link to post Share on other sites
bx93 0 Report post Posted October 11, 2004 I'm confused these days, however, this is really a very easy question. Now I got the answer, append two lines at the very end of record_ly.php. It works in my site. echo "<html> <body> <script language='Javascript'> window.close() </script> </body> </html>";exit; I just close it, if you don't want to do so, you may choose the go(-2) or something else to turn back. and header function such as header("Location: http://forums.xisto.com/no_longer_exists/;) is enabled in php language itself; Share this post Link to post Share on other sites
japanick 0 Report post Posted October 12, 2004 Usually when I have a form and it gets submitted by a user, I create another page that integrates with the website, with a summary of what has been submitted, or simply a thank you page. You could also just send the user back to the main page or something similar. In these cases, you would either display all this in your record_ly.php file, or have that file forward to another page. Share this post Link to post Share on other sites