Advertisement
Advertisement
| 04.18.2008 at 01:32AM PDT, ID: 23333519 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
rockmansattic:
You can do it by setting url variables or session variables.
one way to do this is to pass the url like this
<SCRIPT LANGUAGE='JavaScript'>
<!-- //
var name="Dave";
var number=100;
document.write('<a href="another_page.php?name='+name+'&number='+number+'">another page</a>');
// -->
</SCRIPT>
<?php $var1 = $_GET['name']; $var2= $_GET['number']; ?>
you can do this via GET, POST, SESSION
You could do this all on the same page if you wanted to by calling a javascript function that sets these variables and then php gets them.
Let me know if you need more code.
Rockman
|