dj.html
08-31-2009, 02:28 AM
//CODE REMOVED
JS Code has been removed for this example as what I would like to do is not needed.
The data passes thru the browser, What I need is to grab the data into some kind of varable and then goes to a link/button.
Example:
site.com/js.php?name=NAME&number=555555&address=1 Demo Drive&email=demo@site.com
The PHP part I can code.
I need the data that parses thru JavaScript to be put into the above URL:
site.com/js.php?name=+ p.Name +&number=+ p.Number +&address=+ p.Address +&email=+ p.Email +
Then that variable passes thru a link or button.
The way the system is system is the reason why I have 2 for(s) and cannot be changed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script id="Example" language="javascript">
<!--
function example() {
//CODE REMOVED
for (;!example.atEnd();example.moveNext ())
{
var p = example.item ();
document.write("Name: " + p.Name + "<br />");
document.write("Number: " + p.Number + "<br />");
document.write("Address: " + p.Address + "<br />");
}
for (;!example1.atEnd();example1.moveNext ())
{
var p = example1.item ();
document.write("Email: " + p.Email + "<br />");
}
}
//-->
</script>
</head>
<body onload="example()"></body>
</html>
JS Code has been removed for this example as what I would like to do is not needed.
The data passes thru the browser, What I need is to grab the data into some kind of varable and then goes to a link/button.
Example:
site.com/js.php?name=NAME&number=555555&address=1 Demo Drive&email=demo@site.com
The PHP part I can code.
I need the data that parses thru JavaScript to be put into the above URL:
site.com/js.php?name=+ p.Name +&number=+ p.Number +&address=+ p.Address +&email=+ p.Email +
Then that variable passes thru a link or button.
The way the system is system is the reason why I have 2 for(s) and cannot be changed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script id="Example" language="javascript">
<!--
function example() {
//CODE REMOVED
for (;!example.atEnd();example.moveNext ())
{
var p = example.item ();
document.write("Name: " + p.Name + "<br />");
document.write("Number: " + p.Number + "<br />");
document.write("Address: " + p.Address + "<br />");
}
for (;!example1.atEnd();example1.moveNext ())
{
var p = example1.item ();
document.write("Email: " + p.Email + "<br />");
}
}
//-->
</script>
</head>
<body onload="example()"></body>
</html>