I am what might be called a PHP newbie. I have spent most of the day going through tutorials and attempting to figure this out on my own. I am hoping someone can show a little mercy on me and save my computer from an untimely toss out my window.
I am building a website for my company which is a computer service and sales business. I want to have a page where browsers can go and 'build' a computer by choosing different options utilizing drop down lists. You can see what I have so far at http://www.computah.com/lapcus.php (that's cus not cuss, though I am getting close)
Right now you can choose some items to build a laptop and click update which will guide you to an identical looking page though it is actually http://www.computah.com/price.php . The totals of what you chose are tallied at the bottom of the page. The formatting is terrible and I will take care of that later but what I would really like it to do is when you are redirected to the second page the items you chose in the list boxes are displayed that way. For example, if you chose a 1.9 Ghz cpu instead of the standard 1.6 when you clicked update the price.php page would have that option selected.
I am having a tough time understanding variables, arrays, etc. and I have a feeling somewhere in one of these areas is my solution. If someone could send me a simple script that would take a single form variable and pass it to another page so that when that second page was loaded the selected variable would be the item showing that would be great.
One problem I also have is that I need to retain the dollar values as well as the label or caption so I can add up the totals, if that makes sense.
This is getting wordy but in other words:
If someone chooses the P4 1.9 Ghz CPU, which adds $94 dollars to the cost I want the list box to display their choice and I need to be able to access that value of $94 to add up their total.
This is taken from my dreamweaver page and shows the options for memory:
<select name="memory" size="1" id="select13">
<option value="0">128MB</option>
<option value="65">Upgrade to 256MB (+$65)</option>
<option value="90">Upgrade to 384MB (+$90)</option>
<option value="175">Upgrade to 640MB (+$175)</option>
There is the value in panetheses, I can access that, but how do I call up the second part and what is it called? (The parts that start with Upgrade to...)
I apologize if I have not given enough info. I am not looking for someone to do this for me, just for a nudge in the right direction. I am a computer repairman but my screwdriver is not helping on this one. Maybe if I shoved it in the coffee holder, I mean CDROM...
Thanks in advance for the help.