473,387 Members | 1,904 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.

Tring to format - what can I use besides a table???

Hello,

I am trying to make the following on an HTML page

FIRST NAME LAST NAME
ADDRESS CITY
STATE ZIPCODE

BUTTON(CONTINUE)
.......

I am using input fields to collect the data:

<INPUT type="text" name="Firstname" ....>

I tried to do the formatting with a table:
<TABLE>
<TR>
<TD>
<INPUT ... FIRST NAME>
</TD>
<TD>
<INPUT ... LAST NAME>
</TD>
</TR>
</TABLE>

<INPUT type="button" onclick="process_input('FormName')";...>

I tried place these input fields as part of a table but then nothing
seems to work.

If I do,
process_input(SubmitForm)
{
var f2 = document.form.[SubmitForm];
f2.method = "get";
f2.submit();
}

Then I get something like the object does not exist.

I can only get things to work if the values if <INPUT ...> is not
placed in a table.

How can I do the proper formatting without using a table to do it? ANY
type of pointers on this is most graciously appreciated!

Regards.

Jul 23 '05 #1
3 1335
BMR
You should do :

<input type="button" onclick="process_input(this.form)";...>

process_input(SubmitForm)
{
SubmitForm.method = "get";
SubmitForm.submit();
}

BMR

milkyway a écrit :
Hello,

I am trying to make the following on an HTML page

FIRST NAME LAST NAME
ADDRESS CITY
STATE ZIPCODE

BUTTON(CONTINUE)
......

I am using input fields to collect the data:

<INPUT type="text" name="Firstname" ....>

I tried to do the formatting with a table:
<TABLE>
<TR>
<TD>
<INPUT ... FIRST NAME>
</TD>
<TD>
<INPUT ... LAST NAME>
</TD>
</TR>
</TABLE>

<INPUT type="button" onclick="process_input('FormName')";...>

I tried place these input fields as part of a table but then nothing
seems to work.

If I do,
process_input(SubmitForm)
{
var f2 = document.form.[SubmitForm];
f2.method = "get";
f2.submit();
}

Then I get something like the object does not exist.

I can only get things to work if the values if <INPUT ...> is not
placed in a table.

How can I do the proper formatting without using a table to do it? ANY
type of pointers on this is most graciously appreciated!

Regards.

Jul 23 '05 #2
On 20 Jan 2005 21:58:03 -0800, "milkyway" <d0******@hotmail.com>
wrote:

Post a URL to the whole page. No URL, no helping.
How can I do the proper formatting without using a table to do it?


Use the table - it's a perfectly legitimate use for one. They work
inside <form> quite happily.

Do you have a <form> element ? It's not going to be happy without
one.
Jul 23 '05 #3
Dan

milkyway wrote:
<INPUT type="button" onclick="process_input('FormName')";...> [snip] process_input(SubmitForm)
{
var f2 = document.form.[SubmitForm];
f2.method = "get";
f2.submit();
}


Is there any reason for your use of JavaScript instead of a plain-HTML
submit button? You seem to be unnecessarily limiting the accessibility
of your form for non-scripting-enabled users.

--
Dan

Jul 23 '05 #4

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

Similar topics

1
by: Abby Lee | last post by:
I hard coded "TheYear" (the table) and "MonthPD" (a field) into my script to make sure the query worked (it did)...so now I want to replace an actual year (table) with varible which the next step...
2
by: Bernd Lambertz | last post by:
I have a problem with bcp and format files. We changed our databases from varchar to nvarchar to support unicode. No problems so fare with that. It is working fine. But now I need a format...
2
by: Alexander Schmidt | last post by:
Hi, I am not very familiar with C++ programming, so before I do a dirty hack I ask for a more elegant solution (but only the usage of STL is allowed, no special libs). So I need to read a file...
1
by: Query Builder | last post by:
I am new to BCP. Can anyone help me understand this? I tried searching the BOL but it doesnt show much help on syntex. Lets say I have a simple table and want to out put the records into a file....
3
by: milkyway | last post by:
Hello, I am trying to make the following on an HTML page FIRST NAME LAST NAME ADDRESS CITY STATE ZIPCODE ...
10
by: .Net_Newbie | last post by:
Hello, gurus I have a problem about format XML I use ms data access building block to get a data set from stored procedure. the dataset's save xml give me data with the elements. Is there any...
6
by: Stuart McGraw | last post by:
I am looking for a VBA "format" or "template" function, that is, a function that takes a format string and a varying number of arguments, and substitutes the argument values into the format string...
48
by: Daniel Rudy | last post by:
Hello, On a x86 machine, what is the format of a pointer in C? I know for a fact that the x86 p-mode uses a /selector:offset/ notation where the selector is defined in either the GDT or LDT. ...
0
by: Goosie | last post by:
Is it possible to change the format of a decimal field on mysql level? We would like to use an open source solution though all the currency fields have to change. Values like: 1,2567.34 should be...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
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:
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
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: 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
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.