473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Form submit w/ hidden fields using text only

I've seen this covered before, but I just don't understand Java very
well. I apologize if this is a repeat.

Basically, I need a text/java style submit form with multiple hidden
fields. It would take the place of the following standard submit
button:

<form action="ProductQuery.cfm" name="LineCode" method="post">
<input type="hidden" name="Year" value="#GetProducts.Year#">
<input type="hidden" name="Make" value="#GetProducts.Make#">
<input type="hidden" name="Model" value="#GetProducts.Model#">
<input type="hidden" name="Model" value="#GetProducts.Model#">
<input name="SubmitVehicle" type="submit" value="Submit">
</form>

Any ideas?

Thanks!

Jul 23 '05 #1
5 7681
Lee
sa**@centric.net said:

I've seen this covered before, but I just don't understand Java very
well. I apologize if this is a repeat.

Basically, I need a text/java style submit form with multiple hidden
fields. It would take the place of the following standard submit
button:

<form action="ProductQuery.cfm" name="LineCode" method="post">
<input type="hidden" name="Year" value="#GetProducts.Year#">
<input type="hidden" name="Make" value="#GetProducts.Make#">
<input type="hidden" name="Model" value="#GetProducts.Model#">
<input type="hidden" name="Model" value="#GetProducts.Model#">
<input name="SubmitVehicle" type="submit" value="Submit">
</form>

Any ideas?


1. Javascript has nothing at all to do with Java.
2. As far as I know, neither HTML nor either of these languages
has any feature called a "text/java style submit form".

What, exactly, do you want?

Jul 23 '05 #2
Sorry, I didn't explain too well...
I just need a "text only" submit form. No buttons, just text. It also
needs to pass some variables over with the hidden fields. If it's
possible, that would be great. I've seen it done with Javascript, but I
don't know how to set up the hidden fields.

Jul 23 '05 #3
Lee
sa**@centric.net said:

Sorry, I didn't explain too well...
I just need a "text only" submit form. No buttons, just text. It also
needs to pass some variables over with the hidden fields. If it's
possible, that would be great. I've seen it done with Javascript, but I
don't know how to set up the hidden fields.

What you're asking for is a form that is submitted via an onclick
event of a link (usually).

The hidden fields are exactly the same. The only difference is that
you get rid of the Submit button, and use a link, instead:

<a href="whyIwontAllowYouToSubmit.html"
onclick="document.forms['LineCode'].submit();return false">Click
to Submit</a>

The URL in the HREF attribute is to a page where you explain why
you have chosen not to allow people without Javascript enabled to
use this form.

Jul 23 '05 #4
Lee wrote:
What you're asking for is a form that is submitted via an onclick
event of a link (usually).


That effect is more safely achieved by using a regular submit button and
some CSS to take away the borders and background colour.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #5

David Dorward wrote:
Lee wrote:
What you're asking for is a form that is submitted via an onclick
event of a link (usually).
That effect is more safely achieved by using a regular submit button

and some CSS to take away the borders and background colour.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is


David,

Your suggestion of using CSS worked exactly as I wanted. In case anyone
is interested, the following "Submit Button" looks like a standard text
link. I was able to tweek it so it actually looks the same in IE
Explorer, Netscape and Opera.

<INPUT TYPE="SUBMIT"
VALUE="More Products"
STYLE="
font-family:Arial;
font-size:12px;
color:blue;
background:white;
width:8em;
border:Thin Dotted White;
">

You can also add some text decoration, but that produces different
results in the three browsers I mentioned.

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Mascherino | last post by:
I have read quite a few posts and can't seem to find the answer to my question. I need to be able to pass from fields to PHP from severel different forms on a page. I have had to create multiple...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
1
by: Don Stefani | last post by:
Hello, I have a form that I want to submit "onchange", OK I've got that working, but when the form submits, I want to pass along a value to a CGI script, as if that value was in a hidden form...
14
by: Oleg | last post by:
Hello there: I've been trying to create two different sets of required fields in one form and to use a radiobutton as sort of a switcher between these sets. In my HTML form there are two...
3
by: User | last post by:
Form A (Main) Text Box 1 Text Box 2 Text Box 3 Form B (Pop-up) Choose a selection for Form A/Text Box 3 Scenario:
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
0
by: hellopraveen30 | last post by:
Here is my form lap and i want to submit data of this form to another form ("http://www.lapkokcasuals.net/jobs/Apply.aspx") without going their how can i do it ihave written these code below data is...
4
by: Rolf Rosenquist | last post by:
From a page with a form I collect the fields in the next page. The fields are compared with a database and if a certain condition does not fit, I want to go back to the first page with the form,...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.