RE: [PHP] FW: Button Help

From: Date: Thu, 11 Oct 2001 14:36:22 +0000
Subject: RE: [PHP] FW: Button Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70813@lists.php.net to get a copy of this message
this is not really a PHP question. <script language="javascript"> if (history.current != history[1]) { document.write('<input type="button" name="back" value="back" onClick="history.back()">'); } document.write('<input type="button" name="submit" value="submit" onClick="document.formname.submit()">'); document.write('<input type="button" name="reset" value="reset" onClick="document.formname.reset()">'); if (history.current != history[history.length]) { document.write('<input type="button" name="forward" value="forward" onClick="history.forward()">'); } </script> the if loops were not tested in real-world cases, but should work 1. if current URL is not the only one in the JS history array, print "back" 2. print "submit" 3. print "reset" 4. if current URL is not the last one in the JS history array, print "forward" --- Michael Geier CDM Sports, Inc. - Systems Administrator email: mgeier@cdmsports.com -----Original Message----- From: De Necker Henri [mailto:deNeckerH@ford.co.za] Sent: Thursday, October 11, 2001 8:58 AM To: PHP-General (E-mail) Subject: [PHP] FW: Button Help > - > > I want to know how buttons work in HTML. > > I have 4 buttons that must do the following : back,submit,reset,forword. > > Q1>If the user press back, the information that he has entered on the > previos page must still be there.(like the IE back button). > How can i do this? > > Q2>Where must i place the IF statements that test which button was pressed > to do a specific function or commands,after the > input tags ,or above the input tags. > In my one page it is totaly at the bottom ,and in the next it > doesnt wanna work at the bottom only at the top.What is the right > way to to this.? > > > Hoender. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#70813) next »