Trying to pass a javascript variable

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Post by pootergeist » Sat Feb 15, 2003 9:58 am

javascript = clientside
php = serverside

thus php is processed before the page is sent to the client.

for javascript to pass any info to a php script requires a refresh (or possibly just a script img src swap)

maybe

<script>
document.location.replace('samepage.php?js_var=' + var);
</script>

sorta thing

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest