Avoiding the <p> after a form submit

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Avoiding the <p> after a form submit

    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 [email]lesjuby@anti-spam.iafrica.com[/email]
    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....?
    Les Juby Guest

  2. Similar Questions and Discussions

    1. Submit PDF Form
      I've created my first PDF Form in Acrobat 7.0 Professional, with a "submit-form" button. Now, I want the filled-out form to be sent as an attachment...
    2. Submit form
      I am creating a control which will upload files. The problem I am having is the button event I have created does not seem to see the files getting...
    3. After submit of a form
      I want to allow software to be donwloaded but only after a form is filled out , verified and submitted. No matter where I place the code it does not...
    4. Avoiding overlapping of text fields (Reusing one form in the same PDF file)
      I'm not sure whether this can be done or not. BUT I sure hope it can. Well, the feature I'm longing for is a feature that can turn the variables...
    5. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
  3. #2

    Default Re: Avoiding the <p> after a form submit

    "Les Juby" <webpro@webpro.co.za> wrote in message
    news:3f4cba07.29111029@news.uunet.co.za...
    > 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 [email]lesjuby@anti-spam.iafrica.com[/email]
    > 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

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


    John Blessing Guest

  4. #3

    Default Re: Avoiding the <p> after a form submit

    IIRC, <form style="display:inline">

    Ray at work

    "Les Juby" <webpro@webpro.co.za> wrote in message
    news:3f4dcf48.34552614@news.uunet.co.za...
    >
    >
    >
    > What I mean is that the browser interprets a carriage/linefeed "as if"
    > there was a <p> tag inserted.
    >
    > 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.
    >

    Ray at Guest

  5. #4

    Default Re: Avoiding the <p> after a form submit

    In news:3f4dcf48.34552614@news.uunet.co.za,
    Les Juby <webpro@webpro.co.za> typed:
    : On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
    : <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote:
    :: 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 [email]lesjuby@anti-spam.iafrica.com[/email]
    : 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....?


    Don Verhagen Guest

  6. #5

    Default Re: Avoiding the <p> after a form submit

    Gazing into my crystal ball I observed "Don Verhagen"
    <news@southeast-florida.com> writing in
    news:biiv8n$a2bmv$1@ID-181477.news.uni-berlin.de:
    > In news:3f4dcf48.34552614@news.uunet.co.za,
    > Les Juby <webpro@webpro.co.za> typed:
    >: On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
    >: <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote:
    >:: 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">

    --
    Adrienne Boswell
    Please respond to the group so others can share
    [url]http://www.arbpen.com[/url]
    Adrienne Guest

  7. #6

    Default Re: Avoiding the <p> after a form submit

    In news:Xns93E48861C2CECarbpenyahoocom@207.115.63.158 ,
    Adrienne <arbpen@sbcglobal.net> typed:
    : Gazing into my crystal ball I observed "Don Verhagen"
    : <news@southeast-florida.com> writing in
    : news:biiv8n$a2bmv$1@ID-181477.news.uni-berlin.de:
    :
    :: In news:3f4dcf48.34552614@news.uunet.co.za,
    :: Les Juby <webpro@webpro.co.za> typed:
    ::: On Wed, 27 Aug 2003 16:21:58 +0100, "John Blessing"
    ::: <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote:
    :::: 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


    Don Verhagen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139