|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Simple Problem But We're Not Skilled
On our site, www.biltsnowboards.com, we offer riders the ability to register for a 'proform discount', which basically drops the price 15% off our standard retail.
When a rider registers for this discount, via a php script, they immediately recieve an email back from us with their discount code and directions on how to use it. (the discount order form can only be accessed by submitting your code on our 'proform' link, and the user session is transfered over to the form) i.e. the form designates: "Registered For A Discount Using 1234 Access Code". OKAY... Here's our question: Rather than having 4-5 different order forms with 4-5 different priceing discounts, is there not a simple PHP script that can (re-price) our order form AND carry over the access code into the form as a (pre-entered) field? In other words... if a user enters access code 1234, the form checks the code, then launches, registers the session, BUT ALSO prices the boards at $XXX, or $XXX, or $XXX (depending on code entered) AND fills in a textfield on the form with the users access code so that when we recieve the order, we know exactly which code was used?? Seems simple enough, but we SUCK at this stuff. ANy help would be GREATLY appreciated!!!!!! Thanks! Glenn Bilt |
|
#2
|
|||
|
|||
|
RE: Simple Problem But We're Not Skilled
From the rules:
Quote:
|
|
#3
|
||||
|
||||
|
RE: RE: Simple Problem But We're Not Skilled
I would say our script is finished 98%, it's just the last few issues we seem to have a problem conquering.
Keep it simple, how do we carry the users code over to the form? That would be a quick fix. Thanks! bilt Quote:
|
|
#4
|
||||
|
||||
|
RE: RE: Simple Problem But We're Not Skilled
Matt -
I don't even see the 'exact' forum I should put this in... can you advise? Or better yet, what are you willing to do this for (if you understand what it is we need)? thanks g Quote:
|
|
#5
|
|||
|
|||
|
RE: Simple Problem But We're Not Skilled
Well..the user enters the code so on the next page you have it. I would toss it in a session variable:
session_start(); $_SESSION['promocode'] = $promocode; then, on subsequent pages you can pull it out at will: session_start(); $promocode = $_SESSION['promocode']; For a quick primer on sessions: http://codewalkers.com/tutorials/32/1.html |
|
#6
|
|||
|
|||
|
RE: RE: Simple Problem But We're Not Skilled
Thanks Matt, but I 'believe' we have it to this point as we are already registering the user session (code) and carrying it over as a header on the next page (i.e. registered using discount code XXX)
The question is: When the proform order page launches, how do I insert the 'users access code' as a form element (i.e. textfield input "client code") If have the skill to help me with all the stuff I want to do - why don;t you call toll free 888 969 2627 (ext 103) This could probably be handled quick via a few minutes on the phone! Thanks! glenn [quote] Well..the user enters the code so on the next page you have it. I would toss it in a session variable: |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Simple Problem But We're Not Skilled |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|