Jump to content

[SOLVED] Need help with url Get string


acctman

Recommended Posts

You have gender.html with URL variables. Is your server set to process .html files as .php?

 

I'm guessing that in gender.html, you want to have two links, one for male, one for female. Is that right? If so, make the links like this:

<a href="regpage.php?s=1">Click here if you are female</a>
<a href="regpage.php?s=2">Click here if you are male</a>

 

Then on regpage, you put this:

 

echo ($_GET['s'] == 1) ? 'Female' : 'Male';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.