3D Gallery with Great Artwork Imagine Logo with Three Colors Beach Cabin 3D Android Tablet with Different Screens Studio Apartment Red Figured Greek Vase on Blue Background Silver and Gold Flashlight Lake on Fire

Form Post with PHP

Example

Learn to post data to a form with PHP and MySQL. Enter information in the form, below.

Enter your user name, password, and favorite color in the form below. This example demonstrates how to use basic RESTful HTML post, in a form, for PHP and MySQL. The end result displays a Web page table derived from the posted MySQL data. See the form HTML markup, below.

See PHP & MySQL Scripts See the Color Table

Form HTML Markup

<form action="../tables/table-colors.php" method="post">
 <label>User Name:</label>
 <input type="text" name="user"  value="user">
 <label>Password/Email:</label>
 <input type="text" name="pwd" value="pwd">
 <label>Favorite Color:</label>
 <input type="text" name="data" value="blue">
 <label>Submit to Database:</label>      
 <input type="submit" value="Post Data">   
</form>

Ads >
Create 3D Games: Learn WebGL Book 2 Simple Shaders: Learn WebGL Book 4
3D Programming for Beginners: Learn WebGL Book 1

for Web graphics!

Copyright © 2022 Amy Butler. All Rights Reserved.