I would like to ask help on how and what is the best way to handle this kind of scenario, for me its too complex. maybe example is highly appreciated.
the page that i want to build should have this features.
- can be open in browser via http://server/view.php?id=1000
- if id=1000 does not exist, post a message not exist and throw it to another page
- if id=1000 does exist, then open the page for viewing
- the page has a form with with a textbox where i can add info about the records
- the form submit to itself and process the data to DB.
how can i combine all these since features? i really appreciate if a sample snippet code especially on the form submit, checking if id exist thanks a lot.
Very basic example below. You can fill in the details