473,395 Members | 1,460 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,395 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 1010
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...
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: 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:
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.