Submit a value

J

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
 
J

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
 
B

Bryan Field-Elliot

jan said:
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;
 
J

jan

I tried:
But ERROR anser:
document.formpje.totaleprijs is empty or no object.

What next??

jan
 
B

Bryan Field-Elliot

jan said:
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>
 
J

jan

YES this it!
Thanks
jan

Bryan Field-Elliot said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,226
Latest member
uatas12

Latest Threads

Top