You are here: Re: Can you _POST variables in php without using a <FORM> « All PHP « IT news, forums, messages
Re: Can you _POST variables in php without using a <FORM>

Posted by ZeldorBlat on 01/21/06 18:24

chris_fieldhouse@hotmail.com wrote:
> verify.php checks the id and password against the database.
> if the check succeeds I use $_SESSION to track the logged in user into
> the page.
> if the check fails, I use $_SESSION["error"] to set an error message
> and then jump to login.htm, but I've lost the userid.
> The only way I can see of transferring the userid (and some other data)
> is by calling header ("Location: login.htm?id=$uid");
> and then have some php code in login.htm to $GET['uid'] and pop that
> into the user field on the form.

Ummm...you just said that you set $_SESSION['error'] and redirect to
login.php. I would assume that this is working and that you're able to
access the value of $_SESSION['error'] once you get back to the login
page.

If this is the case, why not just set their uid in the session as well?
Then you can have at it when you redirect back to the login page.

 

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

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