Old 29-11-2006, 20:29   #1 (permalink)
moos3
Registered User
 
Join Date: Oct 2006
Posts: 33
Forms

can some one help me build a php form processor that will store the form input the form so it can be used in a html table. I have the form all done @ http://wines.guthnur.net/sheet.html can anyone point me in the right direction?

thanks.
  Reply With Quote
Old 30-11-2006, 02:17   #2 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,961
If you want to store the data you will need mysql support on your webhosting.

Then create a database to receive the data.

Then the code to connect to the db and code to write a new record to the db.

To display the contents to the table you will need again to connect to the db and then code to extract rows from the db and then build <tr><td> rows as the data loops.
__________________
  Reply With Quote
Old 30-11-2006, 02:19   #3 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,961
__________________
  Reply With Quote
Old 30-11-2006, 08:12   #4 (permalink)
moos3
Registered User
 
Join Date: Oct 2006
Posts: 33
I want to do it without using a database. using something like session keys.
  Reply With Quote
Old 30-11-2006, 08:24   #5 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,961
Send the form to the next page and display the data there is that what you mean?

If so first you will need submit button on that form.

You will need to put a form around the form elements you have created.

Make the form action showsheet.php for example.

Now to display the passed values on showsheet.php (must be .php) you need to use PHP echo like this anywhere within your html.

<?php echo "$brandname1"; ?>
__________________
  Reply With Quote
Old 30-11-2006, 10:18   #6 (permalink)
moos3
Registered User
 
Join Date: Oct 2006
Posts: 33
k thanks.
  Reply With Quote
Old 30-11-2006, 13:53   #7 (permalink)
moos3
Registered User
 
Join Date: Oct 2006
Posts: 33
K I have it some the form makes the table but if you don't fill the whole form it wont post any of it to the table. how can I fix this?
  Reply With Quote
Old 30-11-2006, 14:41   #8 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,961
Where can I see this?

Might I suggest a simple three text field form for testing until you get the thing working, you can add more fields later.
__________________
  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