View Single Post
  #1  
Old 08-22-2006, 12:47 PM
dizzie dizzie is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dizzie is on a distinguished road
Default forcing uppercase variable

hi all...
Hello

I'm adding an offer code to a shopping cart, customers will be sent a code by mail to get 10% off on the checkout
so i have a code set as a variable something like

$offercode = 'WFTP67';

on the form that sends the order the user puts this code in a field, called $offer

I want to make sure that the variables match so i need to force the form feild to send it in uppercase, it shows it in uppercase on the form because of my css, but it doesn't match the code unless i have caps on my keyboard

can this be done easily?
thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - forcing uppercase variable
View Single Post
  #1  
Old 08-22-2006, 12:47 PM
dizzie dizzie is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dizzie is on a distinguished road
Default forcing uppercase variable

hi all...
Hello

I'm adding an offer code to a shopping cart, customers will be sent a code by mail to get 10% off on the checkout
so i have a code set as a variable something like

$offercode = 'WFTP67';

on the form that sends the order the user puts this code in a field, called $offer

I want to make sure that the variables match so i need to force the form feild to send it in uppercase, it shows it in uppercase on the form because of my css, but it doesn't match the code unless i have caps on my keyboard

can this be done easily?
thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote