It is currently Sat Feb 04, 2012 3:30 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Getting the Hostname and put it into a <input&g
PostPosted: Mon Jan 25, 1999 11:27 am 
Can anybody help me to get de hostname with PHP, and then put it into a <input> type?

For example, you have an ISP who called worldonline (www.worldonline.nl) Then you want to get this into an input type field:

<input type="text" value="@worldonline.nl">

Thanx.


Top
  
 
 Post subject: RE: Getting the Hostname and put it into a
PostPosted: Mon Jan 25, 1999 12:00 pm 
Hi <br> <br>try this : <br><? <br>$host=getenv("HTTP_HOST"); <br>echo"<INPUT TYPE=\"TEXT\" NAME=\"host\" VALUE=\"$host\">"; <br>?> <br> <br>You can see all of the environment variables by creating a file with only the next code in it and looking at it via a browser : <br> <br><? <br>phpinfo(); <br>?> <br> <br>I hope this helps


Top
  
 
 Post subject:
PostPosted: Thu Apr 15, 2010 3:45 am 
Offline

Joined: Thu Apr 15, 2010 3:36 am
Posts: 3
Greetings, pal this site might help you out
http://www.webune.com/forums/php-how-to ... ripts.html

Good Luck.

_________________
cuban cigars
Cigars


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: