entire form content

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

    entire form content

    Hello,

    is it possible to get everything between <form></form> into an variable even
    the plain text so i can work with it and write it to a file?

    thanks for the advice
    chris


  • FLEB

    #2
    Re: entire form content

    Regarding this well-known quote, often attributed to Christian's famous
    "Fri, 21 Nov 2003 17:27:04 -0500" speech:
    [color=blue]
    > Hello,
    >
    > is it possible to get everything between <form></form> into an variable even
    > the plain text so i can work with it and write it to a file?
    >
    > thanks for the advice
    > chris[/color]

    Please explain further.

    Are you trying to get all the form HTML code from an outside page?

    Are you trying to read everything that got filled into a form? With or
    without knowing the elements in the form?

    Are you trying to "write" a custom form based on previous data?

    All of these things are possible... which one do you need?

    --
    -- Rudy Fleminger
    -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
    (put "Hey!" in the Subject line for priority processing!)
    -- http://www.pixelsaredead.com

    Comment

    • Christian

      #3
      Re: entire form content

      I want to use aynhtml to change the content and i need to write the changed
      content back to the file and i was thinking something like this
      <form name="content" method="post" action="send.ph p">
      Html Content
      </form>
      and in the php file
      <?php
      $textcontent = $_POST[$content];
      fp = fopen() and so on.
      ?>
      but will it write the plain html that is not in a form object somehow to the
      variable?
      Thanks

      "FLEB" <soon.the.sp@mm ers.and.evil.on es.will.bow-down-to.us> wrote in
      message news:6ajasj35ck c2.5solhfxtl4yz .dlg@40tude.net ...[color=blue]
      > Regarding this well-known quote, often attributed to Christian's famous
      > "Fri, 21 Nov 2003 17:27:04 -0500" speech:
      >[color=green]
      > > Hello,
      > >
      > > is it possible to get everything between <form></form> into an variable[/color][/color]
      even[color=blue][color=green]
      > > the plain text so i can work with it and write it to a file?
      > >
      > > thanks for the advice
      > > chris[/color]
      >
      > Please explain further.
      >
      > Are you trying to get all the form HTML code from an outside page?
      >
      > Are you trying to read everything that got filled into a form? With or
      > without knowing the elements in the form?
      >
      > Are you trying to "write" a custom form based on previous data?
      >
      > All of these things are possible... which one do you need?
      >
      > --
      > -- Rudy Fleminger
      > -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
      > (put "Hey!" in the Subject line for priority processing!)
      > -- http://www.pixelsaredead.com[/color]


      Comment

      • FLEB

        #4
        Re: entire form content

        Regarding this well-known quote, often attributed to Christian's famous
        "Sun, 23 Nov 2003 11:59:09 -0500" speech:
        [color=blue]
        > I want to use aynhtml to change the content and i need to write the changed
        > content back to the file and i was thinking something like this
        > <form name="content" method="post" action="send.ph p">
        > Html Content
        > </form>
        > and in the php file
        > <?php
        > $textcontent = $_POST[$content];
        > fp = fopen() and so on.
        > ?>
        > but will it write the plain html that is not in a form object somehow to the
        > variable?
        > Thanks
        >
        > "FLEB" <soon.the.sp@mm ers.and.evil.on es.will.bow-down-to.us> wrote in
        > message news:6ajasj35ck c2.5solhfxtl4yz .dlg@40tude.net ...[color=green]
        >> Regarding this well-known quote, often attributed to Christian's famous
        >> "Fri, 21 Nov 2003 17:27:04 -0500" speech:
        >>[color=darkred]
        >>> Hello,
        >>>
        >>> is it possible to get everything between <form></form> into an variable[/color][/color]
        > even[color=green][color=darkred]
        >>> the plain text so i can work with it and write it to a file?
        >>>
        >>> thanks for the advice
        >>> chris[/color]
        >>
        >> Please explain further.
        >>
        >> Are you trying to get all the form HTML code from an outside page?
        >>
        >> Are you trying to read everything that got filled into a form? With or
        >> without knowing the elements in the form?
        >>
        >> Are you trying to "write" a custom form based on previous data?
        >>
        >> All of these things are possible... which one do you need?
        >>
        >> --
        >> -- Rudy Fleminger
        >> -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
        >> (put "Hey!" in the Subject line for priority processing!)
        >> -- http://www.pixelsaredead.com[/color][/color]

        Hmm... I'm not totally sure on the specifics of atnHTML, but I think your
        best solution would be to save the file out, and upload it in a form FILE
        element. Otherwise, you can copy/paste the HTML into a textbox.

        If Ayn uses that "Publish to Web" type feature, well, I really haven't
        gotten into that yet.

        --
        -- Rudy Fleminger
        -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
        (put "Hey!" in the Subject line for priority processing!)
        -- http://www.pixelsaredead.com

        Comment

        Working...