You are here: Re: passing data thru link « All PHP « IT news, forums, messages
Re: passing data thru link

Posted by Gaga on 11/23/06 11:29

"Christoph Burschka" <christoph.burschka@rwth-aachen.de> wrote in message
news:4slcr1F10bna4U1@mid.dfncis.de...
> 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
-----------------------------------------------------
Thank you for replay but there is just one small problem...
On the main page i have users listed from the db and this is the way im
displaying them in the table:
<?php echo $row_dbUsers['id']; ?>
<?php echo $row_dbUsers['name']; ?> etc.

If i make <? <a href="user_edit.php?id=$row_dbUsers['id']">edit</a> ?> i get
parse error.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация