Re: how to pass a number through href url?
| From: | PJ | Date: | Sat, 13 Jun 2009 20:10:40 +0000 |
| Subject: | Re: how to pass a number through href url? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294020@lists.php.net to get a copy of this message | ||
Stuart wrote:
> 2009/6/13 PJ <af.gourmet@videotron.ca>:
>
>> I wish to be able to edit db field that is displayed in a page by
>> calling up another page to handle the editing.
>> The problem is how to pass the id (number) through an href. In other
>> words, can the number be included in the uri  and then filter the uri to
>> leave just the number?
>> Is something like this at all possible?
>>
>
> Oh dear $DEITY. Please find a beginners tutorial to PHP and complete
> it before asking questions on this list.
>
> http://www.example.com/index.php?id=12345
>
> will give you
>
> $_GET['id'] == 12345
>
> -Stuart
>
> Thank you, Stuart. ;-)
--
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- pj@ptahhotep.com
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php