Forum Moderators: coopster
(I want to make an order form with dropdown menu or radio buttons, and that includes a file upload box, calculates the price and has PayPal check out. )
If you dont then that is where to start. As calculating the price will be done on the user input...so if there is no where for an input to take place then dont worry about calculating it just yet ;)
CSS is all about the layout of the form. So again, if you have no form to lay out then I wouldnt worry about how it is going to look.
So HTML first.
Then either CSS or PHP after. They do different things, so it doesnt matter what order you do them in. You may want to do PHP first as this actually affects the workings of your finished product, however seeing as you may well be spending a lot of time looking at the form you may want to get it looking correct first...up to you.
If you have the HTML done then post just the form part up and im sure you will get some hints as to where to go from there.
Because I would like to calculate the price from the data that is inserted in the database, would it be better to echo the data on a new page, instead of the same?
And how would I do this? How do I tell the page with the form to go to the new url?
I think it would be best to use a new page that echos the data and then calculates the price and then add the paypal button. In this way, I can keep the code separated on to different pages.
On the new page do I use something like:
$result = mysql_query("SELECT * FROM
or
echo
to display the data entered?
Better to retrieve the data from the database? Or direct from the form?