Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-27-2013, 06:34 PM   PM User | #1
HelpIamStupid
New to the CF scene

 
Join Date: Jan 2013
Location: Wichita, KS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
HelpIamStupid is an unknown quantity at this point
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.
HelpIamStupid is offline   Reply With Quote
Old 01-28-2013, 10:40 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,602
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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".
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-29-2013, 04:58 PM   PM User | #3
HelpIamStupid
New to the CF scene

 
Join Date: Jan 2013
Location: Wichita, KS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
HelpIamStupid is an unknown quantity at this point
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?
HelpIamStupid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Advertisement
Log in to turn off these ads.