[nycphp-talk] insert goto command

Tim Lieberman tim_lists at
Sun Aug 12 20:18:12 EDT 2007

Send a redirect header?

$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
> NYPHPCon 2006 Presentations Online
> Show Your Participation in New York PHP

More information about the talk mailing list