Please keep the discussion on-list.
2009/3/18 Bill Mudry <[email protected]>:
> At 04:44 AM 3/18/2009, you wrote:
>
> 2009/3/18 Joao Gomes Madeira <[email protected]>:
>> Hey Stuart
>>
>> That's what I thought at first, but Bill mentioned the usage of a form
>> only as an example, in reality he is not using it. He just wanted
>> this... Right Bill?
>
> It doesn't matter if the URL is coming from a form with method="get"
> or a plain link, $_GET will still be populated - there is absolutely
> no difference in the resulting request.
>
> -Stuart
>
> It would be good practice for me to try your simplified way when I can get
> some time again.
> For now, it is great to find any solution that works.
It's not a "simplified way", it's just the way PHP works. I really
don't see where the confusion lies. Maybe an example would help...
http://dev.stut.net/php/mudry.php
-Stuart
--
http://stut.net/
>> -----Original Message-----
>> From: Stuart <[email protected]>
>> To: Joao Gomes Madeira <[email protected]>
>> Cc: Bill Mudry <[email protected]>, [email protected]
>> Subject: Re: [PHP-WIN] Can't seem to transfer a dynamically chosen
>> parameter to next page
>> Date: Tue, 17 Mar 2009 20:03:57 +0000
>>
>> 2009/3/17 Joao Gomes Madeira <[email protected]>:
>>> Hello Bill
>>>
>>> I mixed up names and ended up answering the wrong message. Sorry.
>>>
>>> Actually it is quite easy...
>>>
>>> In viewallorders.php you should replace:
>>>
>>> echo "<a href='showorder.php?$name '>";
>>>
>>> with
>>>
>>> echo '<a href="showorder.php?&name=' . $name . '">';
>>>
>>> and then, in showorder.php
>>>
>>> <?php
>>> parse_str($_SERVER['QUERY_STRING'], $qs);
>>> $name = $qs['name'];
>>>
>>> and that's it!
>>
>> What have you been smoking? This is already done for you, and the
>> results are in $_GET. Why duplicate the work?
>>
>> -Stuart
>>
>>
>>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php