submit formvalues with javascript

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

    submit formvalues with javascript

    Hello,

    is it possible, to submit the values from a web-form with javascript, so
    that i dont need cgi or php?

    Thanks for any help,
    Martin Nadoll


  • lallous

    #2
    Re: submit formvalues with javascript

    submit? you mean send the form data to yourself using javascript only?
    AFAIK, you can't do that using javascript only you would need server side
    code help.

    --
    Elias

    "Martin Nadoll" <martin@nadoll. de> wrote in message
    news:bjs0dm$2d2 $04$1@news.t-online.com...[color=blue]
    > Hello,
    >
    > is it possible, to submit the values from a web-form with javascript, so
    > that i dont need cgi or php?
    >
    > Thanks for any help,
    > Martin Nadoll
    >
    >[/color]


    Comment

    • Erwin Moller

      #3
      Re: submit formvalues with javascript

      Martin Nadoll wrote:
      [color=blue]
      > Hello,
      >
      > is it possible, to submit the values from a web-form with javascript, so
      > that i dont need cgi or php?[/color]

      Where do you want to send it to?
      To another window? (possible)
      To your emailadres? (not possible AFAIK)

      [color=blue]
      >
      > Thanks for any help,
      > Martin Nadoll[/color]

      Comment

      • john

        #4
        Re: submit formvalues with javascript

        Yes, it is possible, but only if you are sending the data to another
        page...anything else would require php.

        You can then send them to another page via hidden input fields:

        <form method="POST">
        <input type="hidden" name="foo" value="fromOrig inalForm">
        <input type="hidden" name="bar" value="fromOrig inalForm2">
        </form>

        You can then retrieve these values on the receiving page.

        Comment

        Working...