Bookmark Topic Watch Topic
  • New Topic

passing information from 1 page to another

 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm doing a website in HTML and want to get information from one page to another. It's a mock e-commerce site I want to price to follow with the pages. I have the following which does not work. Note the alert works.
<script language="javascript" type="text/javascript">

function purchase(checkboxform)
{
var num = checkboxform.length;
for(var i = 0; i< num; i++)
{
if(checkboxform[i].checked)
{
alert("Brunelleschi's Dome is "+checkboxform[i].value);
document.write("cart.html.form1.Price.value = checkboxform[i].value");
}
}


}
</script>
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi Donna, it looks like a javascript question.

There is a category for that.
 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thread started here:

http://www.coderanch.com/t/118247/HTML-JavaScript/moving-information-one-web-page

Close this oh powerful moderator or sheriffffffffffff....

Eric
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!