473,399 Members | 3,888 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,399 software developers and data experts.

Please help, passong data

Hi,

can some one please help me,

Ive got a javascript variable called totScore that i need to pass to an asp
variable in an asp page so i can then write this out to my database.

Any help will be greatfully appreciated.
Nov 23 '05 #1
5 1073
Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript:
Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.


<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>

and then in ASP on the [same] receiving page:

totScore = request.form("totScore")
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Nov 23 '05 #2
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:
Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript:
Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.


<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>

and then in ASP on the [same] receiving page:

totScore = request.form("totScore")

Thanks
Nov 23 '05 #3
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:
Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript:
Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.


<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>

and then in ASP on the [same] receiving page:

totScore = request.form("totScore")


Hi Evertjan,

i pasted your code in my page but it dosnt seem to work, do i have to
change it at all, sorry for the stupid question but im just learning.
Nov 23 '05 #4
Steve Cosh said the following on 11/20/2005 11:01 PM:
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:

Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript:

Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.


<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>

and then in ASP on the [same] receiving page:

totScore = request.form("totScore")

Hi Evertjan,

i pasted your code in my page but it dosnt seem to work, do i have to
change it at all, sorry for the stupid question but im just learning.


totScore = request.form("totScorefield")

as there is no totScore in the form. ASP should have given you an error
if totScore was not present (PHP does).

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 23 '05 #5
Randy Webb <Hi************@aol.com> wrote in news:RvOdnc8gluVooRzeRVn-
qA@comcast.com:
Steve Cosh said the following on 11/20/2005 11:01 PM:
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:

Steve Cosh wrote on 21 nov 2005 in comp.lang.javascript:
Ive got a javascript variable called totScore that i need to pass to
an asp variable in an asp page so i can then write this out to my
database.
<form onsubmit='this.totScorefield.value=totScore'
method='post'>
<input type='hidden' name='totScorefield'>
<input type='submit' value='send totScore to server'>
</form>

and then in ASP on the [same] receiving page:

totScore = request.form("totScore")

Hi Evertjan,

i pasted your code in my page but it dosnt seem to work, do i have to
change it at all, sorry for the stupid question but im just learning.


totScore = request.form("totScorefield")

as there is no totScore in the form. ASP should have given you an error
if totScore was not present (PHP does).


Hi Randy,

do i need to put the form code inside some javascript tags?
Nov 23 '05 #6

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

Similar topics

1
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
1
by: Esteban Felipe | last post by:
Hi, thanks for reading. I hope to find some help here before I commit suicide because this is driving me crazy. Please excuse me if this looks like a long post, but I hope that a complete...
13
by: Joner | last post by:
Hello, I'm having trouble with a little programme of mine where I connect to an access database. It seems to connect fine, and disconnect fine, but then after it won't reconnect, I get the error...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
1
imrosie
by: imrosie | last post by:
Please help with this one,,,,,I've been trying everything in my arsenal to fix this one. I'm stumped.... I"ve got a unbound combo box (customername) that has two events (on click); AfterUpdate and...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.