NYCPHP Meetup

[nycphp-talk] insert goto command

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


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




More information about the talk mailing list