Jump to content

[SOLVED] how to embed variables in links?


A2xA

Recommended Posts

I still need help with this... it won't work.

 

 

<html>
<?php

$dir = $_POST[dir];


$file = '/home/wiicharg/public_html/hubchat/hubex/shout.php';
$newfile = '/home/wiicharg/public_html/hubchat/***Need variable here***/shout.php';

if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
}

?>
</html>

it's not the same thing.  On his he's defining a link and on mine I'm defining a link within a variable.  This is what happens when I post what he does:

 

Parse error: syntax error, unexpected '<' in /home/wiicharg/public_html/hubchat/insert2.php on line 8

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.