|
|
|
Is coding not your thing? |
HTML Code TutorialTutor Ebook Download Forms and Text BoxesThere are two devices provided to collect text input from your users in a form. They are the text and textarea input types. We will provide a simple form and a matching PHP script for each.
A simple form to demonstrate: The Form Code:
<form method="post" action="script name">
The PHP ScriptIn order to execute PHP scripts on your PC you must install a localhost server and add PHP.
|
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
A simple form to demonstrate: NOTE: The addition of the Reset button, allows the user to erase text and start over. The Form Code:
The PHP Script<html>
Execute Using PERLCopy the code examples and paste them into a page. Remember, until you set up a local server you will not be able to test your forms. |
|
|
CGI Online |