JavaScript with parameters

From: Date: Mon, 29 Jan 2007 12:24:38 +0000
Subject: JavaScript with parameters
Groups: php.windows 
Request: Send a blank email to php-windows+get-27414@lists.php.net to get a copy of this message
How do I complete a command to be issued by JavaScript with parameters. The above is the short version, the long sad story follows...:-) I have a PHP created web page consisting of data in a table. One of the fields in this table is populated by the PHP variable, $EarnTypeID. If a user clicks on the appropriate field I want to issue a JavaScript request for confirmation before issuing the JavaScript command that then calls another PHP script that will carry out the required task based on the value in the $EarnTypeID. ie I want to "location = 'earntypeDelete.php?UID=$EarnTypeID' but have the $EarnTypeID contain the correct value. -- Regards, Alf Stockton www.stockton.co.za You'll be sorry... My email disclaimer is available at www.stockton.co.za/disclaimer.html

« previous php.windows (#27414) next »