Send a redirect header?

<?PHP
$id = $db->query("INSERT ..... ");
header("Location: viewpage.php?id=$id");
?>

selyah wrote:
Hello:
Is there a command that is used to open a page after performing an action?
I created a php script that will add items to a database and would like to be able to open a view page that would show the newly added item. I am not able to use the insertgoto command and would like to know if there is another command that can be used?
thanks
------------------------------------------------------------------------

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to