Page 1 of 1

Submit two commands on one click

Posted: Tue Apr 30, 2002 7:46 pm
by albatros
Hi,

Iam feeling a litle stuped when i type this question, but ok excuse me :lol:

Does any body know the right code to submit the following with one click:

<a href="index.php?newlang=english"></a>
<a href=javascript:history.back(-1)></a>

This wont work:
<a href="index.php?newlang=english"+"javascript:history.back(-1)"></a>

The goal is to change the lanuage on my board by submit the newlang
code from the index, and go one step back (where you submit the button)

Thanks ahead,
Greetinx,
Hans

Posted: Tue Apr 30, 2002 8:53 pm
by mydimension
in your index.php, in the section that deals with the newlang variable, do a redirect to the page you wish to go to.

i.e.

Hearder("Location: http://www.yourdomain.com/index.php");

Posted: Wed May 01, 2002 9:25 am
by dusty
header("location: $REFERER");