Php Form Processing
Moderator: General Moderators
Php Form Processing
I have searched the internet for this. I want to create a form processor with processes the form to a page which only certain people can access. I got everything down but the form processing. Does anyone have this code or can you lead me to the right direction?
Thanks.
Thanks.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Php Form Processing
I just Googled "PHP form processing" and there are many results. Form processing is a fairly large subject. Maybe post you code.Pwnious wrote:I have searched the internet for this.
(#10850)
Re: Php Form Processing
Yeah I know, but it is not the kind of form processing I want. I need to make one which processes the form to post on a webpage.arborint wrote:I just Googled "PHP form processing" and there are many results. Form processing is a fairly large subject. Maybe post you code.Pwnious wrote:I have searched the internet for this.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Php Form Processing
I am assuming from that you mean that you want to create a HTML form and have it post its values to a PHP script to validate the form. Is that the kind of form processing you want? Again, post some HTML or PHP code and we can help.Pwnious wrote:Yeah I know, but it is not the kind of form processing I want. I need to make one which processes the form to post on a webpage.
(#10850)
Yes somthing like that, I can work on it after I get some info on that. click here for form and the only php code I got so far for this is
Code: Select all
<?php echo $_POST['insert name']; ?>You'll need to store the information from the form somewhere so the webpage can retrieve or display it. You need to decide whether you want to use a flat file or a database to do this. Both are pretty much the same amount of coding, but the database will require some setup.
If you know this already, then you need to explain what kind of processing you are talking about ? Do you mean validation/verification ? Error checking ? Calculations ?
More information will help.
If you know this already, then you need to explain what kind of processing you are talking about ? Do you mean validation/verification ? Error checking ? Calculations ?
More information will help.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Flat file just means storing the data in a text file. If you are using a database then you dont need this.
You can display the form data in a webpage once, but if you want it to stay there you have to store it in your database. To display the data submitted from the form:
Where field_1 etc are the names of the <input> fields in the form. This will only display the data as a once off. As soon as the user navigates away from this page it will disappear.
What sort of validation are you talking about ? What sort of data is the form going to submit ?
You can display the form data in a webpage once, but if you want it to stay there you have to store it in your database. To display the data submitted from the form:
Code: Select all
$field_1 = $_POST['field_1'];
$field_2 = $_POST['field_2'];
...
etc
echo "$field_1<br>$field_2<br>...etc";What sort of validation are you talking about ? What sort of data is the form going to submit ?