Re: Passing variables
| From: | Jeff | Date: | Thu, 22 Mar 2007 03:52:41 +0000 |
| Subject: | Re: Passing variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251065@lists.php.net to get a copy of this message | ||
Thank you Chris!
"Chris" <dmagick@gmail.com> wrote in message
news:4601EFD9.2050103@gmail.com...
> Jeff wrote:
>> I want to thank you all for clearing me up on setting the
>> register_globals to ON issue!! I have refrained from doing so and my code
>> is running great with the $_GET.
>>
>> I am having NO trouble passing my "single" variable to the next page
>> using..
>>
>> echo "<A
>> href=\"char_edit_form.php?charid=$charid\">Edit</A>";
>>
>> as when the next page that load actually shows the character info, so
>> basically you can see you are dealing with the correct record.
>>
>> NOW.............
>>
>> I want to pass two variables to a delete page. The charid and the char
>> name. Here is what I have but it will only pass the 1st variable ?charid
>>
>> echo "<A href=\"delete_char.php?charid=$charid
>> ?char=".$myrow["char_name"]."\">Delete</A>";
>
> The first one is preceded by a ?
>
> Subsequent ones are with an '&'.
>
> See http://en.wikipedia.org/wiki/Query_string
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/