Search found 5 matches

by hbraekke
Mon Sep 21, 2009 4:17 am
Forum: PHP - Code
Topic: PHP - setting variable in link?
Replies: 14
Views: 842

Re: PHP - setting variable in link?

How odd. What's your code? And what version of PHP are you running? If you read my first question... it says... how do I get the variablename in the url. When url is: mysite.com/index.php?variablename=henning So my question was how to get variablename (=henning) in the phpcode. Someone has said the...
by hbraekke
Sat Sep 19, 2009 2:42 pm
Forum: PHP - Code
Topic: PHP - setting variable in link?
Replies: 14
Views: 842

Re: PHP - setting variable in link?

jackpf wrote:HTTP_GET_VARS is deprecated.

$_GET is the new thing. 8)
I tryed $_GET, but it didnt retrive the variable in the html-adress
by hbraekke
Thu Sep 17, 2009 9:26 pm
Forum: PHP - Code
Topic: PHP - setting variable in link?
Replies: 14
Views: 842

Re: PHP - setting variable in link?

I found it out... webbing around...

echo $HTTP_GET_VARS["variabelname"]; //where "variablename="henning" is behind the ? - sign in html-adress

returns henning
by hbraekke
Thu Sep 17, 2009 8:24 pm
Forum: PHP - Code
Topic: PHP - setting variable in link?
Replies: 14
Views: 842

Re: PHP - setting variable in link?

Yes... I am a beginner in PHP, and are reading books for beginners and search all the web for good tips. But I hope someone can help me with this one... If you type the html-adress: ww.mysitename.com/myhtml.php?variablename=henning I hope the part behind ? (variablename) can be fetched in the php-co...
by hbraekke
Thu Sep 17, 2009 7:48 pm
Forum: PHP - Code
Topic: PHP - setting variable in link?
Replies: 14
Views: 842

PHP - setting variable in link?

Is it possible to set variable as following?

<a href='www.abdefgsite.com/abcde.php?Variablename="my name">text</a>

Is it possible to get -Variablename- in php?

thnx HenningB