Re: how to pass a number through href url?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stuart wrote:
> 2009/6/13 PJ <af.gourmet@xxxxxxxxxxxx>:
>   
>> 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@xxxxxxxxxxxxx
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux