|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Please help with a form - utter newbie question
I have a table of products that i want customers to select from and then go to another page showing only those products that have been selected. then I want to email it as an order. I don't want shopping carts.
I think I need arrays and loops. If anyone could give me an example or two I'd be really grateful. With thanks Carol |
|
#2
|
|||
|
|||
|
RE: Please help with a form - utter newbie question
if you display your products with checkboxes, and give the form name as follows - (input type="checkbox" name="product[]")
then the php page submitted to will have an array holding the values checked. you can process the information however you want that way. if you need more help, please be a little bit more specific. |
|
#3
|
|||
|
|||
|
RE: Please help with a form - utter newbie question
Thank you Notepad.
To be more specific (thanks your earlier post worked fine) I want to be able to display more information than just the checkbox on the second page. For example, product description and code and quantity ordered as opposed to a checkbox showing an order. I have seen some tutorials around, but they are not specific enough. Any more help is very welcome. Thanks Carol |
|
#4
|
|||
|
|||
|
RE: Please help with a form - utter newbie question
are your products along with descriptions etc stored into a database of some sort? if so, then just pass the id and you can retrieve information for whatever order/product you want to.
|
|
#5
|
|||
|
|||
|
RE: Please help with a form - utter newbie question
At this stage just a list/table. Databases in the future - this is scary enough as it is.
Thanks Carol |
|
#6
|
|||
|
|||
|
RE: Please help with a form - utter newbie question
Carol,
You seem to be doing something I just completed myself, but with Databases. If you are interested, email me and we can share code. It's a simple, search for product and add to product selection, then check out which shows extended product information and full prices, then finalisation to email the order through to the desired site (location of offices). |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Please help with a form - utter newbie question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|