Re: passing data thru link
- From: Christoph Burschka <christoph.burschka@xxxxxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 11:52:17 +0100
Gaga schrieb:
Hi!
How to transfer exited data from main to edit page. ?
I have one page with listed users ( from the db ) and you can click on each
user.
After that you will be transfered to edit page.There you can edit the user
you have choose.
The problem is that i dont know how to define the link ( with user data )
from the main page, and then how to check this data on the edit page ( so i
can be sure that im making edit on the right user ).
Thank you !
Use a GET parameter.
Your link should look something like this:
<a href="user_edit.php?id=33">edit</a>
In the script user_edit.php, the variable $_GET['id'] will be set to 33. You can then use this value to get the required user from the database.
--
Christoph
.
- Follow-Ups:
- Re: passing data thru link
- From: Gaga
- Re: passing data thru link
- References:
- passing data thru link
- From: Gaga
- passing data thru link
- Prev by Date: mysqli-trouble with MySQL5
- Next by Date: Re: passing data thru link
- Previous by thread: passing data thru link
- Next by thread: Re: passing data thru link
- Index(es):
Relevant Pages
|