Re: [PHP] how to pass a number through href url?

[email protected] (Stuart)
Newsgroups php.general
Message-ID <[email protected]>
2009/6/13 PJ <[email protected]>:
> 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

-- 
http://stut.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.