...

View Full Version : table form/saving



angelstar
12-28-2007, 10:25 AM
hi,
I am a new coder with the php program and I am creating a monitoring system, I just want to know how can i create.. that when the form that is fill-out and save it will display in a table form all the details that u enter and it will do the same every time you input data.. I dont know how to figure it out please..

thanks =)

Fumigator
12-28-2007, 04:54 PM
You'll find the PHP manual (http://www.php.net/manual/en/) to be very helpful when figuring out the basics. Start with the tutorial (http://www.php.net/manual/en/tutorial.php), specifically the "Dealing with Forms" section.

333qaz333
12-29-2007, 09:13 AM
$_POST[] is an array containing all the input values submited in a form.

here is an example code of what i think you are trying to do:



<?php
if(isset($_POST['btnSubmit'])){
echo "Your name is: ".$_POST['name'];

//You can also define a variable from $_POST. example:
$email = $_POST['email'];
echo "Your email is: ".$email;
}
?>

<html>
<body>
<form name="formname" method="post">
Name: <input name="name" type="text"><br>
Email: <input name="email" type="text"><br>
<input name="btnSubmit" type="submit" value=" GO! ">
</form>
</body>
</html>


Hope this helps!!

~Brandon



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum