View Single Post
  #7 (permalink)  
Old Dec 16th, 2003, 14:35
rhoov rhoov is offline
New Member
Join Date: Dec 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
yep, both examples work, only now i stumbled opon the next problem.
On the first page i do a calculation of prices (the value part)before submitting them to the next page, but that doesnt work any more because we put the text in there aswell.
And that's where i wanted to split up text and value.
i will try to tell exactly what and where i need this for.

I have a website where people can rent a gameserver.
I made a little form with the following formfields
A select/list box called "game" with names of the game servers, the prices are the values of this select box.
A Select/list box called "Privpubl" where there are 2 choices, private server or public server. The value of private server = 0.00 and public = 30.00.
A select/list box called "players" where the text = number of player (16,18, etc) and the values are 0.00,3.00,6.00, etc.
And a textfield called "result"

When people make selections from which server they want the form adds the values and put them into the result field.

When they made there final selection they can submit the form.
On the next page i want to split the values and the text into different form fields.
After that i want to submit all that data into a SQL database (that's no problem btw)

So i hope you see my problem, i cannot put text|value in the value part of a select/list boxor else my calculating gets scr*wed up.