You are here: Re: cannot pass query string (GET) vars « PHP Programming Language « IT news, forums, messages
Re: cannot pass query string (GET) vars

Posted by on 10/28/07 15:29

On Oct 26, 1:26 am, Kevin Blount <kevin.blo...@gmail.com> wrote:
> I'm having a very odd issue, that arose this morning after working
> fine yesterday...
>
> here's a very simple script:
>
> 1: <?php
> 2: $test = $_GET['test'];
> 3: echo "Hello" . $test . "<p>";
> 4: ?>
>
> when called using this URL:
>
> http://216.244.107.150/info.php?test=me
>
> the code should just output:
>
> Hello me
>
> but instead the server just hangs, until my browser timesout. If I
> remove "?test=me" from the URL, the script works just fine (output:
> "Hello "), but for some reason all my PHP scripts now hang when I try
> and pass a name/pair on the URL.
>
> Any ideas?? I'm very new to PHP and probably change the config of IIS6
> somehow, or just broken it in some other way. Any advice would be
> appreciated.
>
> Beekay

url
http://216.244.107.150/info.php?test=urlencode(me)


<?php

$test = urldecode($_POST['test']);

echo "hello {$test}";

?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация