PDA

View Full Version : Dynamic Popup



Patriotxcountry
March 24th, 2005, 05:38 PM
Ok here is my scenario:

There is a folder on a server called "proofs" and in it are many folders labeled by numbers. So to get to the content of "123", the relative path would be "/proofs/123".

I have a text box in a flash movie:

- The user types in a number in the text box.

- Flash send the number to a php script as a post variable.

- The php script opens a new window of the path "/proof/variableNum"

Here is the code that I'm working with (and its not working):

<?
$clientnum = $_POST["clientnum"] ;

print <<

<SCRIPT type="text/javascript" >

window.open('/proofs/$clientnum', 'newWindow',)

</SCRIPT>

HTML;

?>

Can anyone help me out?

nightshade
March 26th, 2005, 04:46 PM
Try this:

<?
$clientnum = $_POST["clientnum"];
?>

<SCRIPT type="text/javascript">

options = "height=[number], width=[number], scrollbars=[yes/no], toolbars=[yes/no]"
window.open('/proofs/<? echo $clientnum; ?>','newWindow',options)

</SCRIPT>

YOUR PAGE

I think thats wot ur lookin 4