Trying to pass a javascript variable

General discussions related to php

Moderators: egami, macek, gesf

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

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)


document.location.replace('samepage.php?js_var=' + var);

sorta thing
avatar image based upon nasas apod (only updates if I post though)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests