Posted By

Masis on 04/09/10


Tagged

form php html


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rlynch3


PHP Form


 / Published in: HTML
 

URL: http://phpforms.net/tutorial/html-basics/php-forms.html

A PHP form on a web page allows a user to enter data that is sent to a server for processing. For instance, almost each company web site contains a contact form, so that visitors can send a message to the site owner. Such a contact form usually contains several fields - for the visitor’s name, for the email address and one for the main message. PHP forms resemble paper forms because internet users fill out the forms using checkboxes, radio buttons, or text fields. For example, the forms can be used to enter shipping or credit card data to order a product or can be used to retrieve data. When dealing with HTML forms and PHP it is necessary to remember that any form element in HTML page will automatically be available to the PHP scripts.

  1. <tr>
  2. <td>Name *</td>
  3. <td><input type="text"></td>
  4. </tr>
  5. <tr>
  6. <td>Email *</td>
  7. <td><input type="text"></td>
  8. </tr>
  9. <tr>
  10. <td>Phone</td>
  11. <td><input type="text"></td>
  12. </tr>
  13. <tr>
  14. <td>Field_check</td>
  15. <td>
  16. <input type="checkbox" value="1"><label>Check_1</label><br>
  17. <input type="checkbox" value="2"><label>Check_2</label><br>
  18. <input type="checkbox" value="3"><label>Check_3</label>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td>Message *</td>
  23. <td><textarea rows="5"></textarea></td>
  24. </tr>
  25. <tr>
  26. <td colspan="2"> </td>
  27. </tr>
  28. <tr>
  29. <td colspan="2"> </td>
  30. </tr>
  31. <tr>
  32. <td><input type="button" id="subbut" value="Submit"></td>
  33. </tr>
  34. </table>
  35. </form>

Report this snippet  

You need to login to post a comment.