By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,461 Members | 1,135 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,461 IT Pros & Developers. It's quick & easy.

Submit a value

P: n/a
jan
Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a

do it all with JS.
form.totaleprijs.value=ANB10

jan wrote:
Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan


Jul 20 '05 #2

P: n/a
jan
I tried this:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
ANB10=88
form.formpje.totaleprijs.value=ANB10
</script>

but then: "form not defined"
the NAME of the form is: formpje.

jan

"p cooper" <pd********************@yahoo.co.uk> schreef in bericht
news:Mi*********************@news-text.cableinet.net...

do it all with JS.
form.totaleprijs.value=ANB10

jan wrote:
Hi,
Problem:
I have asigned a number (34) in javascript to ANB10
then i want to submit with:

<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

but when I submit the form I see on my mail:
totale prijs ANB10 !!
instead of : totale prijs 34??

HOW come
and what is the solution?

Thanks jan

Jul 20 '05 #3

P: n/a
jan wrote:
I tried this:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
ANB10=88
form.formpje.totaleprijs.value=ANB10
</script>

but then: "form not defined"
the NAME of the form is: formpje.

Try this instead:

document.formpje.totaleprijs.value=ANB10;

--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #4

P: n/a
jan
I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??

jan

"Bryan Field-Elliot" <br***@netmeme.org> schreef in bericht
news:JR*******************@rwcrnsc52.ops.asp.att.n et...
jan wrote:
I tried this:

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
ANB10=88
form.formpje.totaleprijs.value=ANB10
</script>

but then: "form not defined"
the NAME of the form is: formpje.

Try this instead:

document.formpje.totaleprijs.value=ANB10;

--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #5

P: n/a
jan wrote:
I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??


What next, hmmm..Well, this looks suspect:
<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

Take out the space in the field name, like this:
<INPUT NAME = "totaleprijs" TYPE = "HIDDEN" VALUE=ANB10>
--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #6

P: n/a
jan
YES this it!
Thanks
jan

"Bryan Field-Elliot" <br***@netmeme.org> schreef in bericht
news:I7*******************@rwcrnsc52.ops.asp.att.n et...
jan wrote:
I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??


What next, hmmm..Well, this looks suspect:
<INPUT NAME = "totale prijs" TYPE = "HIDDEN" VALUE=ANB10>

Take out the space in the field name, like this:
<INPUT NAME = "totaleprijs" TYPE = "HIDDEN" VALUE=ANB10>
--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #7

P: n/a
jan wrote:
YES this it!
Thanks
jan

Super!
--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.