Creating submit form with php

I am trying my shot at creating a webpage by myself and I wanna create a submit form, with a submit button. I want all the information below to be in the submit form… Help would be wonderful

Last Name (last, text)
First Name (first, text)
Street Address 1 (street1, text)
Street Address 2 (street2, text)
City (city, text)
State (state, text)
Zip (zip, text)
Phone (phone, text)
Fax (fax, text)
Email (email, text)
Verify Email (verify_email, text)
How did you find us? (marketing, select)
1. Mailing
2. Phonebook
3. Search Engine
4. Phone Call
5. Word of mouth
6. Other
Type of request (request_type, radio)
Quote
Information Request
Quote/Request (request, textarea)

So, what is stopping you? You want to do it by yourself, do so. You want help, we have a freelance section where you can hire someone, defeating the purpose of “creating a webpage by myself.”

Wow… whats with the attitude, i just asked for help. Your also deleted another post of mine on another php forum

No attitude. You want help but have done nothing but post requirements. The only post I removed was the duplicate you posted.

What help do you need?

I want what is posted below, the code underneath that is what i have so far(unfinished). My problem is the php and how to incorporate it with the html… Im not sure how to code with php, but was also told as far as html i should learn php

Last Name (last, text)
First Name (first, text)
Street Address 1 (street1, text)
Street Address 2 (street2, text)
City (city, text)
State (state, text)
Zip (zip, text)
Phone (phone, text)
Fax (fax, text)
Email (email, text)
Verify Email (verify_email, text)
How did you find us? (marketing, select)

  1. Mailing
  2. Phonebook
  3. Search Engine
  4. Phone Call
  5. Word of mouth
  6. Other
    Type of request (request_type, radio)
    Quote
    Information Request
    Quote/Request (request, textarea)

[code]

Last Name:

First Name:

Street Address 1:

Street Address 2:

City:

State:

Zipcode:

Phone:

Fax:

Email:

Verify Email:

[/code]

First thing I would recommend is to get a book on PHP. It will help you a great deal in the long term.

What do you want to do with the data? Save it to a database? Send it in an email?

One place to look is here, http://www.w3schools.com/php/php_forms.asp. The tutorials section here need to be updated a bit.

I was hoping to add it to a database

Start here. http://www.phphelp.com/forum/the-occasional-tutorial/using-php-with-databases-%28pdo-tutorial%29/. This uses the updated database interaction method as opposed to the older and dangerous mysql_ functions.

Well, there are lots of steps to create your system. First, the form which you have in good shape.
Next, you need to add in some validation to protect the data and make sure it is valid.
Then, some PHP code to store the data inside your database.

Here is a link to a tutorial on forms and how to access it. On the left you will see other areas of interest
that would help you with other areas. Hope it helps…
http://www.w3schools.com/php/php_forms.asp

Here is another tutorial example with full code. Of course, you will have to edit it to link to your database
and your id’s and passwords. But, hopefully, these two will help you get started.
http://www.tutorialspoint.com/php/mysql_insert_php.htm

Hope that helps get you started…

Sponsor our Newsletter | Privacy Policy | Terms of Service