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

display input from form

4
how do i get the input from a form and then display it using document.write?
Oct 6 '06 #1
6 5898
Seith
16
Um, I don't know how to do it with JS

Would you be willing to learn how to use PHP becuase ECHO would be better in my opinion =)
Oct 7 '06 #2
kabuto
4
Um, I don't know how to do it with JS

Would you be willing to learn how to use PHP becuase ECHO would be better in my opinion =)
i would prefer to use JS but if you could show it using any other way, i'll be interested too,
Oct 7 '06 #3
ronverdonk
4,258 Expert 4TB
Have a look at this JS form tutoral Accessing and validating forms using Javascript
It probably gives you the information you are looking for,

Ronald :cool:
Oct 7 '06 #4
kabuto
4
Have a look at this JS form tutoral Accessing and validating forms using Javascript
It probably gives you the information you are looking for,

Ronald :cool:
yes, that's it..
thanks a lot
Oct 8 '06 #5
rhys
25
Have a look at this JS form tutoral Accessing and validating forms using Javascript
It probably gives you the information you are looking for,

Ronald :cool:
I have an issue related to these discussions...

I am writing a table maintenance program, where users can update their existing data. (Debian, PHP4, PostGreSQL7.4) I have no problem displaying existing data using php and echo. My problem is that the first choice in a "select" <option value...> list overrides the existing data. I've tried loading up the first option with existing data values, to no avail. I used switch/case, in the pgsql section after it loads the array, to load the display description, but I can't get it to display. php/echo, single quotes, double quotes, none apparently work. (case 2: $labdisp = "bad labor"; echo "$labdisp"; eg.) The display string in a select option is not quoted, so I'm wondering if I am asking the impossible.

My option/value line resembled varieties of this:
<option value = "<? echo $array["labor"]; ?> <? echo $labdisp; ?>
or just $labdisp (quoted various ways.)

Does anybody know how to get existing values to display in the entry field, overriding the first choice in the option list? I thought my hack would work, but I was WRONG.

I would say it's urgent, but after this many years, nothing is urgent.

I thank any angels in advance who have suggestions!! God bless!!

- Rhys
Nov 27 '06 #6
ronverdonk
4,258 Expert 4TB
Rhys, show some code because I cannot deduct from your sample what the problem is. Anyway the statement that you showed is incorrect [php]<option value = "<? echo $array["labor"]; ?> <? echo $labdisp; ?>
[/php]
this is the correct format (when defining it in HTML code):
[php]
<option value = "<? echo $array['labor']; ?>"><? echo $labdisp; ?></option>
[/php]

Ronald :cool:
Nov 28 '06 #7

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

Similar topics

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...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
1
by: Jon W | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> <html> <head> <title>rolly</title> <!-- The desired performance for this gem would be to: 1. click on table cells 2. edit in INPUT 3....
3
by: Bob Sanderson | last post by:
I am trying to create a form for a MySQL database similar to a spreadsheet. The idea is to display a list of records, with the last line of the list being an input form. When the user enters data...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
4
ak1dnar
by: ak1dnar | last post by:
Hi, I have created a PHP page that write down form data to mySQL table. Before i submit data I want to check the Input field, whether it has filled up or Not. the form should validate from the PHP...
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
15
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
2
by: Abneo | last post by:
Hi all, I am very new to Javascript and I am in some need of some help. I am creating a site that has a madlib. I got the madlib code but now I want the results of the madlib to display in...
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: 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...
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
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,...
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
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...

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.