Well i'm trying to figure out how to bind the php variables to the
javascript variables after I pull them out of the mysql database.
- Rob
----- Original Message -----
From: "Jochem Maas" <jochem@xxxxxxxxxxxxx>
To: "Rob W." <rob@xxxxxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, June 16, 2006 4:13 AM
Subject: Re: Javascript & PHP
Rob W. wrote:
Ok. I am trying to figure out if this would be the correct thing to do. I
start off with Java script that looks like this.
/*
function getType(what,available,owner) {
var serverid = serveradd.serverid.value;
var cabinetid = serveradd.cabinetid.value;
var rowid = serveradd.rowid.value;
var dcid = serveradd.dcid.value;
var colour = serveradd.colour.value;
var spec = serveradd.spec.value;
var mainip = serveradd.mainip.value;
var oldip = serveradd.oldip.value;
var switchid = serveradd.switchid.value;
var switchport = serveradd.switchport.value;
var apcid = serveradd.apcid.value;
var apcport = serveradd.apcport.value;
document.location=('admin.php?page=serveradd&action=' + add +
'&myid=&serverid=' + serverid + '&cabinetid=' +
cabinetid + '&rowid=' + rowid + '&dcid=' + dcid + '&colour=' + colour +
'&spec=' + spec + '&mainip=' + mainip +
'&oldip=' + oldip + '&switchid=' + switchid + '&switchport=' + switchport
+ '&apcid=' + apcid + '&apcport=' + apcport +
'&available=' + available + '&owner=' + owner);
}*/
Do I, Before that exec's, add in my mysql get to set the variables to the
java variables or how do I enter that in?
I read that line 3 times - I know its english, but the meaning escapes
me... maybe others have the same problem.
could you rephrase the question?
Any help is appricated.
-Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php