473,387 Members | 1,536 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,387 software developers and data experts.

HTML Code Help. Input Fields

Hi Guys,

New to all this. Need your help.

I am working on a form. I have some input text fields, however I want to pass the value of one of these text fields to a hidden field.

So lets say I have a field in the form called OLDFIELD. I want to pass the value from OLDFIELD to NEWFIELD.

so my code may look like

<input type = "hidden" name = "NEWFIELD" Value = ???????

Value is to be the OLDFILED.

Could someone help guide me on this.

Kind regards


John
Feb 21 '07 #1
3 1513
ronverdonk
4,258 Expert 4TB
You'll have to use JavaScript to do this trick for you. Because you do not only have to fill the new field, but also have to remove the old field from the form dunamically.

Ronald :cool:
Feb 22 '07 #2
Hi Many thnaks for this.

Do you have some Java Code that I can use?

I do not need to clear out the old field name as I want the data in both fields.

John
Feb 22 '07 #3
AricC
1,892 Expert 1GB
Hi Many thnaks for this.

Do you have some Java Code that I can use?

I do not need to clear out the old field name as I want the data in both fields.

John
Are you trying to pass values between forms? I'm not really clear what your wanting to do and whether Javascript will be sufficient also this is the HTML/CSS forum we may want to move this to a more appropriate forum.

Aric
Feb 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Gr8DaddyG | last post by:
I am trying to paste the following code into the HTLM editor of my webpage: <script...
23
by: gregf | last post by:
I have a paragraph of text pasted into a word document, it's in Polish, complete with polish characters. They show up just fine in word, but the program I use for web page programming, HomeSite,...
6
by: chernyshevsky | last post by:
How do I force IE to encode characters outside of the current code-page as HTML entities? Right now, when I enter some Cyrillic text into a ISO-8859-1 form, the text submitted ends up being CP1251....
8
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.