Page 1 of 1

Header and post info

Posted: Sun Jul 18, 2004 5:16 pm
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 :)

Posted: Sun Jul 18, 2004 5:27 pm
by feyd
:arrow: [php_man]session[/php_man]