Jump to content

[SOLVED] Redirect to a page after database connection


npsari

Recommended Posts

Hello there,

 

I need to redirect to a page, however, I must insert some data into the databse first

 

The problem is, people tell me that the redirect code must be the first thing on page

 

<?php
header ("Location: $URL");
?>

 

How can I insert data then redirect to a page?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.