473,785 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="Product Query.cfm" name="LineCode" method="post">
<input type="hidden" name="Year" value="#GetProd ucts.Year#">
<input type="hidden" name="Make" value="#GetProd ucts.Make#">
<input type="hidden" name="Model" value="#GetProd ucts.Model#">
<input type="hidden" name="Model" value="#GetProd ucts.Model#">
<input name="SubmitVeh icle" type="submit" value="Submit">
</form>

Any ideas?

Thanks!

Jul 23 '05 #1
5 7706
Lee
sa**@centric.ne t 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="Product Query.cfm" name="LineCode" method="post">
<input type="hidden" name="Year" value="#GetProd ucts.Year#">
<input type="hidden" name="Make" value="#GetProd ucts.Make#">
<input type="hidden" name="Model" value="#GetProd ucts.Model#">
<input type="hidden" name="Model" value="#GetProd ucts.Model#">
<input name="SubmitVeh icle" 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.ne t 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="whyIwontA llowYouToSubmit .html"
onclick="docume nt.forms['LineCode'].submit();retur n 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:whit e;
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
3666
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 forms because I am dynamically adding and subtracting form elememts of various types in javascript based on user activity. My problem now is getting all of these different form fields to PHP so I can write them to MySQL. I am open to any...
13
40767
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 style="display:none"> can be displayed by setting the style attribute to "display:", or hidden with "display:none". This gives the illusion that the person filling out the form is switching from page to page...without the overhead of extra hits on the server,...
1
1983
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 element. BUT, I don't want that value to be in the actual HTML form, I want it to be created in my submit function. For instance:
14
2230
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 radiobuttons with values 'Via Email' and 'Printed Brochure'.
3
2512
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
3517
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 click a button on a pop-up window the javascript for that button click does a 'button.form.submit'. On the Server side there is a Button click event for this button, but for some reason it no longer fires. It worked fine before and everything...
0
1131
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 submitted but where it is goin i dont know.please help me and give some reponses. Imports System.Object 'Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.IO.IOException Imports foxtrot.xray.WebRobot Imports...
4
3195
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, and still keep all the other fields as they were written. If I use Response.Redirect the form will be loaded empty again. The same if I use a button on page 2 with onClick="history.Back". Isn't there a way to go back and keep the already written...
0
3396
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 within options. I have everything being dynamically named from the previously dynamically named element. (I hope this makes sense.) I am not able to retrieve any of the dynamically created values. I can view them on the source page but can't pull them...
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.