A
Anonymous
Guest
I guess that's the best way to describe what I am trying to do. I have a form that uses drop-down menus. They have name & price so that the user can choose what they want & when the submit is clicked, the php that will handle the info is to break up the data from the d-d menu and make one variable for item name and another for price. The item description will ALWAYS be from the beginning of the string to 3 spaces before the dollar sign and price will ALWAYS have the '$' right before the amount (duh...lol).
An example of the form output & what I need to handle would be like:
$product="Item Description + $123.00"
whereas it'll be broken down into the following:
$Item="Item Description"
and
$Price="123.00"
thus dropping the ' + $' from the original variable.
I want to break down the prices so that I can make the php also total everything together.
I was also thinking that IF (there's a good word, isn't it...IF) I could pass 2 variables through the d-d menu in the form, I could call them individually where needed. Try as I might, though. It will not work that way...
(That'd have been an EASY solution to my problem if it'd have worked...
).
Many thanks for your help on this one.
If you have any further questions, please email me william@baldeagleelectronics.com
Thanks,
Bill
An example of the form output & what I need to handle would be like:
$product="Item Description + $123.00"
whereas it'll be broken down into the following:
$Item="Item Description"
and
$Price="123.00"
thus dropping the ' + $' from the original variable.
I want to break down the prices so that I can make the php also total everything together.
I was also thinking that IF (there's a good word, isn't it...IF) I could pass 2 variables through the d-d menu in the form, I could call them individually where needed. Try as I might, though. It will not work that way...
Many thanks for your help on this one.
If you have any further questions, please email me william@baldeagleelectronics.com
Thanks,
Bill