View Full Version : database
bunnylicker
12 Oct 2006, 05:59 PM
I have almost got my whole site design except for on two pages and i need some help on what to do. What i do want is to have 4 Forms(list/menu) and then a submit button. The user comes to the webpags and selects there favorite color,pet,season,food and then enters their name and clicks submit. THen the user is taken to the next webpage where there are 4 Large boxes showing there choices and others names of people that have chosen the same in each catogory. I am pretty new to dreamweaver and am not sure where to start at all with this. Any help is appreciated*
spasticus
16 Oct 2006, 12:08 PM
look at:
http://w3schools.com/sql/default.asp
http://www.webcheatsheet.com/php/connect_mysql_database.php
its not hard to get to grips with so you should be able to do what you need using those sites. with the forms you could send the data to a seperate file to be added to the database:
<form method="post" action="savedata.php">
<input name="name" type="text" /> ...etc
then in the savedata.php file:
$Uname = $_REQUEST['name'] ;
this would set the php variable $Uname as the name entered in the form. you would then use $Uname when adding the data to your database.
hope this helps - not realy sure how good you are or what you need but if i can help any more i'll try
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.