Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML input box value="" field

Status
Not open for further replies.

unmlobo

MIS
Apr 11, 2003
64
US
Hola all, here is a easy one for you all. I have an input box that has the value of Price A (See Below). When submitted to our CMS, the output is:

Series1 PriceA Price A

All I want to output is the 'Series1 PriceA'.

Is there any way to do this without Java or CSS?


<input readonly="readonly" align="middle" size="10" border="0" name="unmform_Series1_PriceA" value="Price A" />


Thanks Everyone!!!!

 

If the value for the text box is just "Price A" then that is all that should get sent over.

As it stands this doesn't look to be an HTML issue, but rather an issue with your processing script behind it; whatever it may be.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
The CMS will output anything with the "unmform_" which in this case is 'Series1_PriceA'. The issue I have here is that I want the 'Series1_PriceA' but I dont want 'Price A'.
 
Then wouldn't this be a deal with your CMS and how it outputs values from forms?

Unless of course you just want to remove the value altogether from the textbox and Just leave the name of the textbox as is.






----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
The issue with that is, when I remove the value Price A from the code then it doesn't show up on the web page itself. I guess I want to hide it from the CMS and keep it on the web page...

This turned out to be not so easy....
 
Again, I think this comes down to how the CMS is displaying the information. Which usually you can modify.








----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for the help. I think I need to a little more research then!!!
 
you are going to need some sort of scripting to do this either on the server or client - some examples:

Client:
Javascript
Vbscript (although this will only work in IE)

Server:
.ASP
.NET (C# / Visual Basic)
.PHP





--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
I figured it out.

This is what I had:
<input readonly="readonly" align="middle" size="10" border="0" name="unmform_Series1_PriceA" value="Price A" />



This is what I changed:
<input readonly="readonly" style="display:none;" align="middle" size="10" border="0" name="unmform_Series1_PriceA" value="Price A" />Price A

Thanks for the help everyone!!!!
 
Code:
<input readonly="readonly"  [b][COLOR=red]style="display:none;"[/color][/b] align="middle" size="10" border="0" name="unmform_Series1_PriceA" value="Price A" />Price A

I thought you said you didn't want to use CSS?

--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
I didnt want to have to create a new CSS page but I was searching the web and found that you could embed it into the input code. Didnt know that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top