Home Is there a way to submit multiple forms to insert data in specific column?

# Is there a way to submit multiple forms to insert data in specific column?

Pirjol Nelu
1#
Pirjol Nelu Published in 2017-12-07 21:28:25Z
 
Sas Andreea
Salariu Lunar: lei
Data contract:
Datorie: Lei
Salariu in avans: Lei
Zile de concediu luate: Zile
'; } ?> Modifica'; } ?>  I have this form , but i need to use it for more users ex for user_id=1 to submit 1 form for user_id=2 to submit another form, can you guys help? the database table have a column u_userid where 1 = admin 2,3,4,5,6,7 is normal user, each user has more columns wich i need to update data from database
Omkaar.K
2#
Omkaar.K Reply to 2017-12-07 21:42:41Z
 You can fix it by making the If statement like this... If(\$_SESSION['user_id'] == '2') { Use the update feature and then add a ‘where user_id = 1’ in the end of your statement
gibberish
3#
gibberish Reply to 2017-12-07 21:41:40Z
 You have two options: You can use a form, which requires that you have the 
Your existing stuff in here  tags surrounding your existing code AND you need a button type="submit" to submit the form. or You can use javascript/jQuery. Either way is fine. Also, you need a way to identify which user this form is being filled out for. You have the user_id in a session variable, so why not use that? Your submit button can look like this:   See this example for more information about what you are trying to do: How can I make, when clicking a button, send an email with the data included from the form? PHP - Secure member-only pages with a login system AJAX request callback using jQuery
 You need to login account before you can post.
Processed in 0.380879 second(s) , Gzip On .