Jump to content

Help me, I am newb!


Eugene

Recommended Posts

this is how you can have a page display (you can have 1 page display like as many different pages as you want by ?id= i will show you below
here is you link on the first page

[code]
//here are your links just copy and past them to a page
<a href=test.php?id=3145>testlink1</a> <a href=test.php?id=3146>testlink2</a> <a href=test.php?id=3147>testlink3</a>[/code]

and here is your output page name it test.php

[code]
//test.php
<?error_reporting(E_ERROR);
if($_GET['id']==3145){
print "Hello Everyone";
}
if($_GET['id']==3146){
print "Good bye cruel world";
}
if($_GET['id']==3146){
print "cool it really works";
}
?>
[/code]

or you canput the links on the same page to display something different for each choice(same name test.php)

[code]
//test.php
<a href=test.php?id=3145>testlink1</a> <a href=test.php?id=3146>testlink2</a> <a href=test.php?id=3147>testlink3</a><BR>
<?error_reporting(E_ERROR);
if($_GET['id']==3145){
print "<body bgcolor=red>Hello Everyone";
}
if($_GET['id']==3146){
print "Good bye cruel world";
}
if($_GET['id']==3147){
print "<body bgcolor=blue>cool it really works";
}
?>
[/code]

with this little script you can make your visitors think they are going to many different pages when they really only going to one
i hope this helps answer your question
Link to comment
https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/#findComment-18325
Share on other sites

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.