473,808 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="proces s_input('FormNa me')";...>

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

If I do,
process_input(S ubmitForm)
{
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 1028
BMR
You should do :

<input type="button" onclick="proces s_input(this.fo rm)";...>

process_input(S ubmitForm)
{
SubmitForm.meth od = "get";
SubmitForm.subm it();
}

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="proces s_input('FormNa me')";...>

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

If I do,
process_input(S ubmitForm)
{
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******@hotma il.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="proces s_input('FormNa me')";...> [snip] process_input(S ubmitForm)
{
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
4122
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 is to change from the web page. Switched "From AllExpenses2004" & _ With "From " & TheYear & _
2
9766
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 file for the customer table and and it is not working. It is working fine with the old DB with varchar, but with nvarchar I'm not able to copy the data. The biggest problem is, that I got no error message. BCP starts copying to table and finished...
2
7432
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 in OFF format and store the values read in some file format, I suppose in arrays of floats or ints would be meaningful: My general idea:
3
1350
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 BUTTON(CONTINUE) .......
10
3323
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 better way to format what I want ,says some attributes & some elements ?? Is it easy ?? or I must using string.format each datarow in the dataset to construct the xml or via xslt to transform ?? any idea ?? Regards,
6
2839
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 as specified in the format string. For example fmt("this is $1 format string. arg2 is $2", "short", 3) would return the string "this is short format string. arg2 is 3" Now, the above is easy to write and I have done so. What I want is...
48
2610
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. Does that carry over into the pointer, or does Unix use the flat memory model? -- Daniel Rudy
0
2790
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 in european format: 1.2567,34. To change the source we have to change all the properties of the num_format($value,2) into num_format($value,2,'.',',') or ofcource better num_format($value,$Dec,$DecSep,$ThousSep). Besides this changes a lot ot...
10
5827
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 date format in the table design, such as: mm/dd/yyyy? What I've done for years is to store the date format in date fields, then on the forms, based on their region, I would set the date formats on form_load
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
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,...
0
10374
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
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
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
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
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.