Old 27-03-2007, 19:25   #1 (permalink)
bunnylicker
Registered User
 
Join Date: Oct 2006
Posts: 3
Website and database

IDEA = Come to the Website
See 5 blank text feilds.
1. name 2. cat 3. dog 4. snake 5. bunny
The user enters the data that concerns them. and hits enter.
The next page displays boxes of the animals they entered and other names of the same animal.
I have the website created, my problem is how to get the data entered stored somewhere and how to display it on the next page.
SQL is what i have come up with?
  Reply With Quote
Old 19-08-2007, 22:27   #2 (permalink)
intrinzic
www.intrinzicdesignz.com
 
intrinzic's Avatar
 
Join Date: Aug 2007
Posts: 15
On your form set the action to the next page that will be displayed. On the next page set conditionals that will display the things you want to be displayed based on their form inputs.

To get the value of each of the fields you will call $_POST['field_name']; if you area using php.

Example:

PHP Code:
if($_POST['animal'] == 'Dog'){

print 
"<img src=\"dog_box.jpg\">";

}elseif(
$_POST['animal'] == 'Cat'){

print 
"<img src=\"cat_box.jpg\">";


  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8