Storing form data for later use?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DAMINK
Forum Newbie
Posts: 3
Joined: Sun Sep 06, 2009 4:54 pm

Storing form data for later use?

Post by DAMINK »

I have created a form which echos a result easy enough. :crazy:
But as this is for a quote form i need to be able to use the results of the form not only to echo the result but i hope to be able to get this info input into another form and hopefully the whole result of the form. What i mean is the form selections also so when they order i receive something to the effect of quantity=X Colors=x size=x and the actual echoed price?
The reason is i have a quote page i am making where the customer can get a free quote. Now if there happy with the quote then they move onto the actual order which is why i want to be able to retreive this info.
I have tried breifly the _session but only seemed to output my arrays not the results in them.
Im sure no one wants to see the code but just in case i will post a little of it. :oops: And i have a feeling i may get told off for this also :( as i believe there was better ways to produce the same result. Anyhow.

Code: Select all

 
<?php           
$Colors = $_POST[Colors];
$quantity = $_POST[quantity];
$size = $_POST[size];
?>
 
<?php if ($quantity == "100") if ($Colors == "1col") if ($size == "a6") echo "$231.00"?> 
<?php if ($quantity == "250") if ($Colors == "1col") if ($size == "a6") echo "$253.00"?>
<?php if ($quantity == "500") if ($Colors == "1col") if ($size == "a6") echo "$550.00"?>
 <?php if ($quantity == "1000") if ($Colors == "1col") if ($size == "a6") echo "$792.00"?>
<?php if ($quantity == "2500") if ($Colors == "1col") if ($size == "a6") echo "$1892.00"?>
Thanks if anyone can point me in the correct direction. And please go easy on me. I am a complete noob!!
DAMINK
Forum Newbie
Posts: 3
Joined: Sun Sep 06, 2009 4:54 pm

Re: Storing form data for later use?

Post by DAMINK »

3 days and not a single reply? :(
Post Reply