solution Posted November 5, 2016 Share Posted November 5, 2016 Please i have successful created an online form that student can use to submit their into our database... the form consist of the following field... first name, last name, age, , course, scratch card pin. in the scratch card pin, student will have to purchase scratch card from the school and enter it into the scratch card field and if it correspond with any of the pins in the scratch card column it will submit the data on the line that the pin match...i need help in achieving this, i'm a begginer in php... THANKS. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 7, 2016 Share Posted November 7, 2016 Do you have any code so far? If you have questions then we can help you figure things out, but we aren't going to write all of the code for you. Link to comment Share on other sites More sharing options...
solution Posted November 8, 2016 Author Share Posted November 8, 2016 Not at all, just the /Form.html and /Submit.php And Are Both Working Perfectly Well... I Want To Add A Field to Form.html and it wil be for the "Serial Pin" which has already been inserted into a column name "Pin" by me. now when submiting the form all i want to do is to validate the pin with the one in the database table column name "pin" if it correspond then every other input should after validation should all be submitted to the row or take the row to which pin corresponds. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 8, 2016 Share Posted November 8, 2016 You can send a select query to look up something in the database, and if it exists then you can use update to update that row with new data. Link to comment Share on other sites More sharing options...
solution Posted November 8, 2016 Author Share Posted November 8, 2016 Please how should i go about it because i'm jst a beginner. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 8, 2016 Share Posted November 8, 2016 What do you have in the PHP file so far? You said it's working perfectly well, so what is it doing? What code are you using? You're already using the database, right? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now