Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Location
    Wichita, KS
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pacifying an input thingy.

    So, I am working on a new ecommerce website, and it has an affiliate program, which I would like to set up and run, except it is asking users for their tax id, which seems like overkill since I am only going to pay in store credit. I would like to remove the request for the user's tax id, except I realize if I just remove it from one page, it's going to be missing it elsewhere in the program, so instead, I would like to assign a value to the tax id (just a dummy number or something (It's not any sort of key database value or anything)) and remove the prompt for the user to fill in.

    The code in question reads:

    <td class="item"><b>Tax ID#:</b><br /><input name="txtTaxId" type="text" id="txtTaxId" size="15" class="txtBoxStyle" value="[strTaxId]" maxlength=12> <img src="assets/templates/common/images/error2.gif" width="12" height="12"> (SSN# or EIN#)</td>

    How do I tell it that the tax id is _________ and assign that value to whatever the important variable(s) is/are here, in place of this request.

    Sorry if this is a stupid question--please see my username. Thanks for your help.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,696
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    The thing that holds the data of an input element is the value attribute. Change the value of that attribute to whatever you like and that will send this value to the script, e. g. value="whatever".

  • #3
    New to the CF scene
    Join Date
    Jan 2013
    Location
    Wichita, KS
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    The thing that holds the data of an input element is the value attribute. Change the value of that attribute to whatever you like and that will send this value to the script, e. g. value="whatever".
    Okay, so that sounds perfectly reasonable, except that I noticed value is currently set to some sort of shortcode. Do I not need to worry about changing the value assigned to the shortcode? Am I just being extra dense here?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •