how to display php results in a div

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Asra

    #1

    how to display php results in a div

    Hello,
    I have a web page with lots of divs. In one of them, there is a form
    which calls for a php document. The problem is that the php results
    have to be shown only in that div. Currently, the whole page is
    replaced by the php document. Any help would be greatly appreciated.
    -Asra
  • Randy Webb

    #2
    Re: how to display php results in a div

    Asra wrote:
    [color=blue]
    > Hello,
    > I have a web page with lots of divs. In one of them, there is a form
    > which calls for a php document. The problem is that the php results
    > have to be shown only in that div. Currently, the whole page is
    > replaced by the php document. Any help would be greatly appreciated.[/color]

    Submit the form to itself, and let PHP insert the document in the div
    tag. No JS needed.


    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Csaba Gabor

      #3
      Re: how to display php results in a div

      Another option is to have your particular DIV be an
      <IFRAME name=myTarget> instead, and put a
      target attribute in your form element:
      <FORM target=myTarget ...>

      Csaba Gabor from Budapest

      "Asra" <asra_baig@rock etmail.com> wrote in message
      news:bc519543.0 408191509.3eb5d e4e@posting.goo gle.com...[color=blue]
      > Hello,
      > I have a web page with lots of divs. In one of them, there is a form
      > which calls for a php document. The problem is that the php results
      > have to be shown only in that div. Currently, the whole page is
      > replaced by the php document. Any help would be greatly appreciated.
      > -Asra[/color]


      Comment

      Working...