I'm a newbie in PHP. I want to insert logged in user's ID into another table in the database on click of a button.Could any body guide me through or answer.
how to insert a query in a button?
153 Views Asked by Marchelina Manullang At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
- How to create nested selects with sql?
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Best Practice for adding columns to a Table in Oracle database
- SQL FIFO STACK using two tables
- SQL Query - Order by String (which contains number and chars)
Related Questions in BUTTON
- change content button with trigger
- PHP like button(counter) inside a table
- How can I make a button who draws a line
- Scrollable webpage navigation
- Two checkbuttons to toggle sound not working right
- HTML Button Link to Website from Text
- Unity - Gui Button issues (Android)
- I can't click the finish button it seemed to be like disabled or something
- Button Visibility in WPF at startup
- Changing background of button every second
- How do I convert point to local coordinates?
- Flash CS3: Text appears on button mouse over or text mouse over
- Android : Unable to change width of dynamic button
- Change button background with an action
- Android how am I supposed to get text using button
Related Questions in SESSION-VARIABLES
- Session lost in few seconds randomly
- How to use session variables and sqlite in fragment
- Tapestry: When should a Session State Object be preferred to a Session Attribute?
- socket io get id of the disconnected socket
- Node.js express-session what does the proxy option do?
- application.cfc - conditionally turn on session and/or client management?
- I can not hold a session variable passing by get
- How to store select box value in a session array variable without using multiple?
- Using a session.get variable in Publish/Subscribe
- Is there anyway to skip app domain recycle during App_Code changes?
- I am losing session data when being redirected from Payment GateWay using java
- no output for php session code being generated
- Issue with assigning value from mysql to session variable and conditional statements
- set session variable or local storage in javascript
- Very strange session issue with Opencart and PHP
Related Questions in SUBMIT-BUTTON
- Struts 2 plugin <s:submit> render html expression in label
- virtual and physical keyboards ENTER not executing form
- How can I set a Button's type to "Button" (as opposed to the default "Submit") in C#?
- Submit button is not working in bootstrap validator even if there is no incorrect field
- Submit Button won't appear
- PHP echo printing language construct
- how to insert a query in a button?
- Sending a SQL command with one click of an HTML button through PHP
- mysql delete and update use checkboxes with submit buttons for multiple items
- Phonegap / jQuery Mobile form submit button not respond to click while the keyboard displaying
- iphone overriding all of my styles on an input[type="submit"]
- PHP Form with 2 Submit Buttons, Conditional Works, but no Header Redirect
- Unable to clear input field automatically after clicking on submit (React)
- clear controlled components in a form using react after clicking submit button
- Re-Enable Submit button after doing some Corrections in an Angular Form
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First you need your form :
This one simply create a form with two input for the id & the pass.
Now you need to write your
myfile.phpto tell it to do a query :