Re: FW: Button Help
| From: | Kamil Nowicki | Date: | Thu, 11 Oct 2001 14:14:57 +0000 |
| Subject: | Re: FW: Button Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70809@lists.php.net to get a copy of this message | ||
> > 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?
<INPUT TYPE="button" NAME="back_button" VALUE="Back"
onClick="history.back()">
(Previous page has to be cached - do not send no-cache header on previous
page.)
> > 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.?
do it IN input tags (like above)
or in page header section:
<HTML>
<HEAD>
<SOME TAGS>
<SCRIPT><!--
function...
etc.
//--></SCRIPT>
</HEAD>
<BODY>
<BODY GOES HERE>
</BODY>
</HTML>
or in <SCRIPT></SCRIPT> tags above inputs