Re: Javascript & PHP

From: Date: Fri, 16 Jun 2006 09:13:40 +0000
Subject: Re: Javascript & PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238143@lists.php.net to get a copy of this message
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

« previous php.general (#238143) next »