Jump to content

Need to append variables to URL assigned in JS


n1concepts

Recommended Posts

Hi,

 

I'm working with a PHP script but have a pop - using JS - to open a new form to which I need to insert a variable to that URL but not sure how to accomplish.

Here's the current code which works but without the append variable:

 

<?php

$_REQUEST[cid] = 123;

echo "<strong><A href=# onclick=\"window.open(http://domain.com/email.php?caseid=$_REQUEST[cid]);\">Send a Email</A></strong>";

?>

 

What I need is for the popup page - which is http://domain.com/email.php  to include that variable 'caseid' which should be 123.

I can't define the correct logic to produce the correct results - including the variable.

 

Any help w/this appreciated - thx!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.