Header and post info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Whil
Forum Newbie
Posts: 8
Joined: Wed Jul 30, 2003 8:50 am
Location: USA

Header and post info

Post by Whil »

I'm fairly new to making a php based site for multiple users, so I've got probabily a fairly easy question.

I have users log in and then when ever they change pages with a form it passes the information and the form is always of type post so the information is not visible.

However the last page I have I would like to have return them to a page they've been to before yet there is no form on the page, its just an sql query that updates an info page. How do I make the header pass the information of username and pass?

if ($numrows == 1) {
$query2 = "insert into addresses (lastname,firstna...
mysql_query($query2, $link) or die ('error in query'. mysql_error());
header("Location: /phptest/index.html"); //this is where i need help
}

thanks :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

:arrow: [php_man]session[/php_man]
Post Reply