Web Development Network  |  Sites:    Capital Tutorials    Internet Marketing Books    Arcade Games
Depiction- Webmaster Resources
Stock Image

Contributors: SSD VPS in Europe  |  SEO Las Vegas |  EsqRank |  Free SEO Report

Dental SEO Marketing  |  Best Las Vegas SEO Company  |  Currency Converter Live

Misc Links: Submit Tutorials (Earn $$) l Advertising l Privacy Policy | Site Map

Tutorials > PHP > Tutorial System Page 2


4. Next create an add form. Start by creating a new file named add.php and put this in it.

<form action="verify.php" method="post"><p>Title:<br><input type="text" name="frmtitle" size="23" value="Title"><br>Avatar URL :<br /> <input type="text" name="frmavatar" size="23" value="Icon URL"><br />User:<br><input type="text" name="frmuser" size="23" value="Username"><br> Description:<br><input type="text" name="frmuser" size="23" value=""><br>Message:<br><textarea name="frmmessage" cols="100" rows="25"></textarea><br><input type="submit" name="Submit" value="Submit"></p></form>

5. Now, make a verify file to put the new information in the MySQL database. To do this, create a new file called verify.php and add this in it.

// Include the config
// Set the variables from the form
$Title = $_POST['frmtitle'];
$Avatar = $_POST['frmavatar'];
$User = $_POST['frmuser'];
$Message = $_POST['frmmessage'];
$Description = $_POST['frmdescription'];
$sql = "INSERT INTO $table SET title='$Title', avatar='$Avatar',
user='$User', message='$Message', description='$Description'";
if (mysql_query($sql)) {
echo("Your tutoral has been added<br /> ");
} else {
echo("Error adding entry: " . mysql_error() . "");
<script language=javascript>



That's it, you're done! This tutorial was made from several other tutorials, but with major editing and add-ons.

Go back to page 1.

Tutorial Written By: Kevin Lynn Steinwand



All Graphic Design Photoshop Tutorials
Tutorial Man Wallpaper Stock  More