Jump to content

Some Php Help


Imoddedu

Recommended Posts

You know how in some pages it has like www.whatever.com/whatever/whatever.php?id=1345In that ?id=1345How do I get that?

Link to comment
Share on other sites

you can do it like this:

$id = htmlspecialchars($_REQUEST['id']);if($id == 'whatever') { function;} elseif$id == 'other') { function1;}exit;functionwhat it do<input type="hidden" name="id" value="whatever">function1what it do<input type="hidden" name="id" value="other">
that's it
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...