Post data to database that is not included in form

Geezah

New Member
This seems fairly simple, however after searching I'm not able to find the fix.Using PHP I'm trying to post a form into a postgresql database. I'm able to post the data just fine. I'm trying to include data in tuple that is not in the form (it's a facebook app and I'm trying to include their user ID, email, etc. with each submission) When I include the value for their user ID into my \[code\]$query = "INSERT INTO ..."\[/code\] (for me it's either \[code\]$user_id\[/code\] or \[code\]$basic['id']\[/code\]) I can not get it to post to the database with the other values. I get an error upon form submission. I'm very new to coding, I'm guessing this is because it is not included as a value in my form, but I'm not sure how to work around this. If anyone can help steer me in the right direction for adding data into database columns that are not in the form fields using \[code\]$query = "INSERT INTO ......"\[/code\] I'd be very thankful!
 
Back
Top