|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Virgin by request ;)
Industry Role:
Join Date: Feb 2002
Posts: 1,924
|
php experts, I need your help
Hi, I need to know how to do this:
traffic sent to this url: http://domain.com/index.php?10001 will display index1.php traffic sent to this url: http://domain.com/index.php?10002 will display index2.php traffic sent to all other numbers, eg, http://domain.com/index.php?20001 will display index.php (or index3.php if index.php is not possible) I am sure this is totally easy to do but I need help, Thanks in advance, Luke |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Feb 2003
Posts: 979
|
This should work..
if($QUERY_STRING =(remove this space)= 10001) { include($DOCUMENT_ROOT/includes/index1.php); }else if($QUERY_STRING =(remove this space)= 10002) { include($DOCUMENT_ROOT/includes/index2.php); }else{ include($DOCUMENT_ROOT/includes/index3.php); } Add this to the inside the body tag of index.html Then make sure that /includes/index1.php index2.php & index3.php exist.. These 3 files should only have the body content and not any html/head/body tags what so ever.. |
|
|
|
|
|
#3 |
|
Virgin by request ;)
Industry Role:
Join Date: Feb 2002
Posts: 1,924
|
Bloody kewl!!! I love php, I wish I knew it a bit more!
Thanks aztecvision, that was exactly what I was looking for. Cheers! Luke |
|
|
|