Jump to content

[SOLVED] Opening a specific new page


Redgie

Recommended Posts

Hi there,

 

I'm currently using a drop down menu to select which image to open in a new window. So basically when they select something, the selection is posted round and converted to another vlaue (This is all irrelevant). The end product is a number, E.G. 401, which references an image, E.G. Vehicle_401.jpg. So I need the selection to open a new window displaying Vehicle_401.jpg

 

This is what I have currently, $model is the value being posted:

 

echo "<script type=\"text/javascript\">\n";
echo("window.open($model, 'example', config='height=400,width=400')");
echo("</script>");

 

However this redirects to page "www.re...../cpanel/401" whereas I need it to be "www.re...../cpanel/Vehicle_401.jpg"

 

I have tried assigning a new variable called $address which combines the 401 variable and a series of additions such as 'Vehicle_'.$model but none of these seem to help, they simply stop the external page opening!

 

Best Regards and thanks in advance for your help :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.