Avoiding the <p> after a form submit

L

Les Juby

maybe this is a real Newbie Question but I'm sure I got around this in
the past but can't remember how.

If a form is situated in normal HTML then a paragraph tag is inserted
after the Submit button.

If the form is placed in a table then the preceding paragraph tag is
supressed but the trailing paragraph space is still inserted.

Any suggestions please.?

.les.


o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
Les Juby (e-mail address removed)
Webpro Internet - - - Prosoft Microsystems
Durban, KwaZulu-Natal, South Africa
P.O.Box 35243, Northway 4065, South Africa
Tel: +27 31 563-8344 Fax: +27 31 564-4928
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
(you *do* know to take "anti-spam" out the address....?
 
J

John Blessing

Les Juby said:
maybe this is a real Newbie Question but I'm sure I got around this in
the past but can't remember how.

If a form is situated in normal HTML then a paragraph tag is inserted
after the Submit button.

If the form is placed in a table then the preceding paragraph tag is
supressed but the trailing paragraph space is still inserted.

Any suggestions please.?

.les.


o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
Les Juby (e-mail address removed)
Webpro Internet - - - Prosoft Microsystems
Durban, KwaZulu-Natal, South Africa
P.O.Box 35243, Northway 4065, South Africa
Tel: +27 31 563-8344 Fax: +27 31 564-4928
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
(you *do* know to take "anti-spam" out the address....?

This must be your html editor which is inserting <p> tags. Either get a
version without this bug or code your html in a text editor.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software at affordable prices
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
 
D

Don Verhagen

In Les Juby <[email protected]> typed:
: On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
:: This must be your html editor which is inserting <p> tags. Either
:: get a version without this bug or code your html in a text editor.
:
: Uuuuh, sorry, some confusion.
:
: What I mean is that the browser interprets a carriage/linefeed "as if"
: there was a <p> tag inserted.

what you are seeing is the default margin IE has for the FORM element. You
can correct this one of 2 ways:

Stylesheet:
form {border: 0 0 0 0}

Or inline style
<form name="myform" style="margin:0 0 0 0;">
</form>

Hope this helps.

Don Verhagen
Tandem Staffing Solutions, Inc.






: For example:
: <form method="post" action="transfer_param_1.asp" name="myForm" >
: <font size="2"><b>EDIT</b> an <b>EXISTING JOB</b></font>
: <input type=text size=10 maxlength=10 name="WotJobNo">
: <input type=submit value="Edit Now"></form>
:
: will put in the extra empty line before the next HTML.
:
: .les.
:
:
: o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
: Les Juby (e-mail address removed)
: Webpro Internet - - - Prosoft Microsystems
: Durban, KwaZulu-Natal, South Africa
: P.O.Box 35243, Northway 4065, South Africa
: Tel: +27 31 563-8344 Fax: +27 31 564-4928
: o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
: (you *do* know to take "anti-spam" out the address....?
 
A

Adrienne

In Les Juby <[email protected]> typed:
: On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
:: This must be your html editor which is inserting <p> tags. Either get
:: a version without this bug or code your html in a text editor.
:
: Uuuuh, sorry, some confusion.
:
: What I mean is that the browser interprets a carriage/linefeed "as if"
: there was a <p> tag inserted.

what you are seeing is the default margin IE has for the FORM element.
You can correct this one of 2 ways:

Stylesheet:
form {border: 0 0 0 0}

Or inline style
<form name="myform" style="margin:0 0 0 0;"> </form>

AFAIK, the form element does not have a border by default, so option 1 is
still going to have the default margin.

Also, the Name attribute within the Form element is invalid in XHTML
Strict, so:

<form id="myform" style="margin:0">
 
D

Don Verhagen

In Adrienne <[email protected]> typed:
: Gazing into my crystal ball I observed "Don Verhagen"
: <[email protected]> writing in
: :
:: In :: Les Juby <[email protected]> typed:
::: On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
:::: This must be your html editor which is inserting <p> tags. Either
:::: get a version without this bug or code your html in a text editor.
:::
::: Uuuuh, sorry, some confusion.
:::
::: What I mean is that the browser interprets a carriage/linefeed "as
::: if" there was a <p> tag inserted.
::
:: what you are seeing is the default margin IE has for the FORM
:: element. You can correct this one of 2 ways:
::
:: Stylesheet:
:: form {border: 0 0 0 0}
::
:: Or inline style
:: <form name="myform" style="margin:0 0 0 0;"> </form>
::
:
: AFAIK, the form element does not have a border by default, so option
: 1 is still going to have the default margin.

Opps, typo for #1, should have been:
form {margin:0 0 0 0} or form {margin:0} or form {display:inline}

The form element will display the same behaviour as other block level
elements(tags), ie a <p>, unless changed to inline. Sorry for the typo.


: Also, the Name attribute within the Form element is invalid in XHTML
: Strict, so:

: <form id="myform" style="margin:0">

Was just using his example where Les used the name attribute. =)


Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top