Help! How to create form

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
jval78
Forum Newbie
Posts: 2
Joined: Thu Apr 30, 2009 11:20 pm

Help! How to create form

Post by jval78 »

Hi, I am new with PHP and I would appreciate your help or direction as to what I am trying to accomplish.
I need a form where a customer can fill out their contact information, date and time that they would like their product delivered. Once they fill out the information after they hit submit I would like to re-direct them to the order page where they can add orders (I am using paypal shopping cart).
Now my questions is, is it possible to force someone to fill out the form first before they can proceed to the order page? For instance, if someone tried to access the order page directly (e.g. http://www.cupcakes.com/order.php) the page will direct them to the contact form, once they complete and submit the form then they can view the products?

Any help would be appreciated!

Thanks,
JV
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: Help! How to create form

Post by it2051229 »

yup it is possible, you need a variable storage where to store the current step of the user for the registration.. let's say the order.php is step 2 and you want the user first to have finished step 1 before proceeding to step 2... so whenever the user visits the order.php, you check the variable storage if the user has finished step 1 and proceed only if step 1 is finished... now the problem with PHP is variabls values keeps on getting erased whenever the page is refreshed, so you need a storage where it doesn't get erased.. you can make use of PHP Sessions or PHP Cookies where you could store the steps.
jval78
Forum Newbie
Posts: 2
Joined: Thu Apr 30, 2009 11:20 pm

Re: Help! How to create form

Post by jval78 »

I am willing to pay to have it done for me. I really need this implemented soon!!!

Please send me a quote and your contact info. any previous work will help too.
I will contact you afterwards.

Thanks
JV
Post Reply