SunQuest
           PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old December 8th, 2003, 03:38 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old December 8th, 2003, 04:17 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Simple Problem But We're Not Skilled

From the rules:

Quote:
Remember that we are not here to write your entire script for you. You need to put an effort into it. Try and do it yourself. When you get stuck, THEN you ask for help. If you simply want someone to write it for you, then post in the General Chat forum and post what you are willing to pay to have the script written.

Reply With Quote
  #3  
Old December 8th, 2003, 04:27 PM
bilt bilt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: AV, CA, USA
Posts: 3 bilt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
From the rules:

Quote:
Remember that we are not here to write your entire script for you. You need to put an effort into it. Try and do it yourself. When you get stuck, THEN you ask for help. If you simply want someone to write it for you, then post in the General Chat forum and post what you are willing to pay to have the script written.


Reply With Quote
  #4  
Old December 8th, 2003, 04:35 PM
bilt bilt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: AV, CA, USA
Posts: 3 bilt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
From the rules:

Quote:
Remember that we are not here to write your entire script for you. You need to put an effort into it. Try and do it yourself. When you get stuck, THEN you ask for help. If you simply want someone to write it for you, then post in the General Chat forum and post what you are willing to pay to have the script written.


Reply With Quote
  #5  
Old December 8th, 2003, 04:42 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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

Reply With Quote
  #6  
Old December 8th, 2003, 09:19 PM
bilt bilt is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: AV, CA, USA
Posts: 3 bilt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Simple Problem But We're Not Skilled


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway