Code: Select all
$visitor_id = 'visitor_id';Moderator: General Moderators
Code: Select all
$visitor_id = 'visitor_id';ianhaney wrote:is def weird, how can I check to see if the visitor id is being set
Code: Select all
$visitor_id = $_SESSION['user_id'];
var_dump($visitor_id); exit;Why?ianhaney wrote:I think the site getting confused, in the users table is a record of 14 when the user(me) signed up and when I went to the second form, it's storing the data from the second form with a visitor_id record of 75
Yes, you'd need to establish a foreign key relation, so your users table would have a visitor_id column to connect the two. Before proceeding to do that, however, consider my questions above.ianhaney wrote:so I think I need the user_id of 14 to correspond with the visitor_id of 75 within the database tables
Where have you defined $error?ianhaney wrote:Notice: Undefined variable: error in /home/sites/broadwaymediadesigns.co.uk/public_html/sites/the-tax-elephants/register.php on line 79
I feel like we've discussed this. You cannot send headers after having sent output to the browser. Leave your markup at the bottom of the file. Logic comes first so you can do things like redirect or set headers or whatever.ianhaney wrote:Warning: Cannot modify header information - headers already sent by (output started at /home/sites/broadwaymediadesigns.co.uk/public_html/sites/the-tax-elephants/register.php:80) in /home/sites/broadwaymediadesigns.co.uk/public_html/sites/the-tax-elephants/functions.php on line 11