NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Using HTTP_POST?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-01-2004, 09:59 PM THREAD STARTER               #1 (permalink)
DSL
Senior Member
Join Date: Jun 2003
Posts: 2,115
DSL is a jewel in the roughDSL is a jewel in the roughDSL is a jewel in the rough
 



Using HTTP_POST?


How would I make the url of a domain appear in a page if it was redirected? What variable or HTTP_POST method would I use?
DSL is offline  
Old 05-02-2004, 03:13 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
<?
echo $_SERVER['HTTP_HOST'];
?>

that will echothe domain you viisited from

then what you could maybe do, is then say if the redirect link was http://bob.com/bob.php

you could change the code to above code to
<?
$url = $_SERVER['HTTP_HOST'];
?>

and in the redicrect url (so after bob.php)

add <? echo "?url=$url"; ?>

now open bob.php on the server and place this

<?
$url = $_GET['url'];
echo $url;

?>

the link would appear as

redirect link would hcnage to

http://bob.com/bob.php?url=yourdomain.com
adam_uk is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:16 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger