Jump to content

gabe8496

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gabe8496's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. is there ways to restrict direct access to them?
  2. I've been looking over some code and notice many use the following format (when doing and include) pagename.inc.php What effect does .inc have on a page that is included versus including a page without it? What am I missing? I did some search on web page extensions via google and couldn't find anything describing this. Any info would be greatly appreciated. Thanks, Gabe
  3. Here is a snippet of the code were running: $_POST['item'] & $_POST['sub'] are setup as arrays on the previous page, because the checkbox for the subs are like so: <input type="checkbox" name="sub[]" value="SM"> [code] $item = $_POST['item']; $sub = $_POST['sub']; $item_array = count($item); $sub_array = count($sub); for ($x=0; $x<$item_array; $x++) { echo ''.$item[$x].'';   for ($i=0; $i<$sub_array; $i++)   {   echo ''.$sub[$i].'';   } echo '<br>'; } [/code]
  4. Ok, here is my scenario: :FORM: Customer chooses shirts from a combo box (multiple selection): Shirt 1 Shirt 2 Shirt 3 Shirt 4 Shirt 5 When user submits, it will display the shirts selected plus the subs (Sizes) associated to the item (with checkbox next to sub): Shirt 1 => SM, MD, LG Shirt 2 => SM, MD, LG, 1X Shirt 3 => One Size Next, the customer checks the sizes they want from the available sizes. Say they select: Shirt 1: SM, MD Shirt 2: MD, 1X Shirt 3: One Size When they hit submit, it will take them to a final page, displaying the shirt they chose plus the sizes they checked right next to the shirt. Shirt 1 => SM, MD Shirt 2 => MD, 1X Shirt 3 => One Size I've created the loop that works good for displaying the shirts but it also displays the same subs for all shirts like so: Shirt 1 => SM, MD Shirt 2 => SM, MD Shirt 3 => SM, MD Its not displaying the checked sizes for the correct shirt. Can anyone help me out here?
  5. [!--quoteo(post=372320:date=May 8 2006, 11:58 AM:name=lead2gold)--][div class=\'quotetop\']QUOTE(lead2gold @ May 8 2006, 11:58 AM) [snapback]372320[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code] $str = "Mary Had A Little Lamb and She LOVED It So"; $str = ucfirst(strtolower($str)); echo $str; // Prints: Mary had a little lamb and she loved it so [/code] [/quote] Thanks for that info. However, I don't think that would work in my situation. How it works right now: User types: san benito, texas Field updates to: San Benito, Texas This is perfect...but If the user does the following: User types: SAN BENITO, TEXAS Form Field updates to: SAN BENITO, TEXAS As you can see, the field stays in all caps. I would need the output (if the user types all caps) to go to => San Benito, Texas
  6. I use a text field to allow a user to specify custom text and on submit, it generates a image with embedded text. Right now, i'm getting it to uppercase all 1st letter of each word...HOWEVER, I have some issues where a customer can have their caps lock and all their text is set to uppercase, which is a problem. Here is teh script I'm using right now: [code] <script LANGUAGE="JAVASCRIPT"> <!-- function capitalizeMe(obj) {         val = obj.value;         newVal = '';         val = val.split(' ');         for(var c=0; c < val.length; c++) {                 newVal += val[c].substring(0,1).toUpperCase() + val[c].substring(1,val[c].length) + ' ';         }         obj.value = newVal; } // --> </SCRIPT> [/code] So, in the end...if the user types SAN BENITO, TEXAS, I want it to change to => San Benito, Texas I'm not all that familiar with javascript, so if anyone can help me out and explain how it works, I would greatly appreciate it. Thanks! Gabe
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.