473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Submit a value

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
7 3416

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
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
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
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
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
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
jan wrote:
YES this it!
Thanks
jan

Super!
--

Bryan Field-Elliot
http://netmeme.org

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xeon | last post by:
Ok, the subject seemed not PHP related, but it does, as the submitted form will be read/processed by PHP. I have this HTML code: <form method="post" action="foo.php"> <select name="blah"...
2
by: jb | last post by:
Hello, I need to know which button was pressed in the submit , i tried reading the vaule of submit it the validateDate function but it returns 'undefined' value ; I do this in asp all the time, Not...
2
by: DB | last post by:
Hi All Having stared at this all morning and altered various things with no effect other then to exasperate the problem i'm wondering if anyone could take a look at the code below and see why on...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
1
by: reneecccwest | last post by:
Hello, I'd like to pass the "levelbtn" value when I click the filter button, but there are also other submit form buttons. I defined as "document.testform.submit();" in the javascript, but I...
8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
6
by: charlie_M | last post by:
I figured out via various help from this forum... EXAMPLE: onClick="document.forms.MYBUTTON.value='SIMPLE';document.forms.submit()" In my CGI I see "MYBUTTON" = "SIMPLE" and this works...
4
by: gimme_this_gimme_that | last post by:
Hi, This is sort of a : How to build a Yes/No dialog box qquestion. Or perhaps a question about getting javascript variables from a pop-up window and processing them on a submit. This is...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.