Jump to content

Text .=


otuatail

Recommended Posts

simple text manipiulation question

I am a data collection freak and there is a section of a website that collects data into a databse. This section opens up a new browser with it's website and adds data to the database.

 

$link = $_REQUEST['destination'];

// $link .= " " . "target=_blank";

$val = $_REQUEST['val'];

mailto($val);

StoreData($val);

header('Location: ' . $link);

 

I can't add the commented out line to create a new browser. have tried " ' ' " and '  " " '

 

Any sugestion.

 

Des

Link to comment
Share on other sites

target=_blank is html, not php so it won't work. There's a Window-Target parameter with header() but if memory serves me right there's difficulties with passing information on or opening up a new window, I'd recommend just mixing the php code up with javascript and using window.open or something similar.

Link to comment
Share on other sites

Thanks for that. This is odd but this part of page 1

 

<td class="Info"><a href="redirect_me.php?destination=http://www.changinglivesonline.org&val=Change Lives">Changing Lives on line</a></td>

 

Page 2

 

<?

include ("functions.inc");

session_start();

$link = $_REQUEST['destination'];

// $link .= " " . "target=_blank";

$val = $_REQUEST['val'];

mailto($val);

StoreData($val);

header('Location: ' . $link);

?>

 

Does this 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.