...

View Full Version : Pacifying an input thingy.



HelpIamStupid
01-27-2013, 07:34 PM
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.

VIPStephan
01-28-2013, 11:40 AM
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".

HelpIamStupid
01-29-2013, 05:58 PM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum