Connecting Tech Pros Worldwide Forums | Help | Site Map

submit formvalues with javascript

Martin Nadoll
Guest
 
Posts: n/a
#1: Jul 20 '05
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
Guest
 
Posts: n/a
#2: Jul 20 '05

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
http://lgwm.org/
"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]


Erwin Moller
Guest
 
Posts: n/a
#3: Jul 20 '05

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]

john
Guest
 
Posts: n/a
#4: Jul 20 '05

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="fromOriginalForm">
<input type="hidden" name="bar" value="fromOriginalForm2">
</form>

You can then retrieve these values on the receiving page.
Closed Thread


Similar JavaScript / Ajax / DHTML bytes