Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Form & Access Database Question!!!!

Posted on 2000-04-14
2
Medium Priority
?
245 Views
Last Modified: 2010-04-09
-I have a form that I have send it's information to a database.
-I need to send a specific string of text(THAT WON'T CHANGE)to a column in the database but I can't use pull down menu's or text boxes or anything of that nature.
EXAMPLE:

<HTML TEXT>How do you like the RED Teams performance?</HTML TEXT>

-How can I take the word RED and insert it in a specific column in a table of a Database??
-Is there a way to do this in Javascript??
-Can I use a single line text field and make it so that the text cannot be changed??  If so then I could use that and make it work??
0
Comment
Question by:mtking
2 Comments
 
LVL 1

Expert Comment

by:fallon12345
ID: 2717476
Are you using ASP/Cold Fusion?

The easiest way is to put the field in a hidden text box.
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 400 total points
ID: 2717486
I agree that hidden fields are the way to go:

 <INPUT type='hidden' name='myfield' value='RED'>

Here is an example of a text field that won't change (and that's not hidden)

 <INPUT type='text' name='myfield' value='RED' onFocus='this.blur();'>
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question