I would like to help but I need to ask question first.
isset($salam) checks the query string, right ? What does this
instruction mean ? It seems to check if a variable called salam
exists.
Does that mean salam=3Dwhatever would work ?
Otherwise, in pure HTML, if you want to "refresh" the same page
which satisfies your demand, the URL can be
the_same_page_name.php?salam=3Dwhatever
> -----Message d'origine-----
> De : payam. [mailto:torkian@c...]
> Envoy=C3=A9 : lundi 10 f=C3=A9vrier 2003 16:30
> =C3=80 : javascript
> Objet : [javascript] Form submition and refreshing the page
>
>
> Hello everybody,
>
> I have a php page with a <form> element in it that it's
> resultant page it
> itself.
> the structure of the page is something like this:
> -----------------------------------------------------
> <?
> if (!isset($salam))
> {
> echo"
> <form name=3Dformam method=3Dpost>
> <INPUT name=3Dsalam type=3Dhidden>
> <INPUT name=3Dget type=3Dtext>
> </form>
> }
> else
> {
> echo"<a href=3D# onClick=3D'?????????????'>go back</a>";
> }
> ?>
> ------------------------------------------------------
> I want the anchor be able to refresh the page(also the form),
> but using
> reload(); makes my PHP do the '''else''' again.
> so what should I do??
>
> ---all I want to do is to refresh my page...
>
> :( I know, it may be a PHP question but if anybody knows it's answer
> PLEEEEEEEEAAASE....
>
> thanks
> payam
>