Jump to content

[SOLVED] %20 Not working 0_o


Chevy

Recommended Posts

Okay well this script I am running works perfectly so far, but once the script echo's a link then that link stops where there is a %20

[code]$insertt = mysql_query("INSERT INTO `mail`
(`to`, `from`, `date`, `message`, `title`) VALUES('$ho2[username]', '$user_ffo[username]', '$date', '$country would like to be allies with you, $country2<br><br><a href=ally.php?country=$country&country2=$country2>Click here for options!</a>', 'Ally Request!')");[/code]

$country has a space like Cookie Monster

$country2 also has a space


Then when it goes and echo's the link will be

[code]<a href=ally.php?country=Cookie></a>[/code]

When I want it to be

[code]<a href=ally.php?country=Cookie Monster&country2=Cookie Monster2>Click Here!</a>[/code]

Any help?
Link to comment
Share on other sites

[code=php:0]
if ($act == "view"){
$frill = mysql_fetch_array(mysql_query("SELECT * FROM `mail` WHERE `id`='$id'"));
$hjh = stripslashes($frill['message']);
$hjh2 = stripslashes($frill['title']);

if ($frill['to']!=$user_ffo['username']){
error("This is not your mail to view!<br><br>
<a href=\"JavaScript:history.go(-1)\">Go Back</a>");
}

$update = mysql_query("UPDATE `mail` SET `status`='Read' WHERE `id`='$id'");

echo '<table width="500" cellspacing="2" cellpadding="2"><tr>
<td style="border:1px solid black;" bgcolor="#A3A3A3" align="center"><b>Viewing Message</b></td></tr></table>
<table width="500" cellspacing="2" cellpadding="2"><tr>
<td style="border:1px solid black;">To: <b>'.$frill['to'].'</b></td></tr><tr>
<td style="border:1px solid black;">Subject:  <b>'.$hjh2.'</b></td></tr><tr>
<td style="border:1px solid black;">'.$hjh.'<br><br>
<a href="mail.php?act=create&user='.$frill['from'].'">Reply</a></td></tr>
</table>';
include("footer.php");
exit;
}
[/code]
^ Thats where you view the message..

And

[code=php:0]
$insertt = mysql_query("INSERT INTO `mail`
(`to`, `from`, `date`, `message`, `title`)
VALUES ('$ho2[username]', '$user_ffo[username]', '$date', '$country would like to be allies with you, $country2<br><br><a href=ally.php?country=$country&country2=$country2>Click here for options!</a>', 'Ally Request!')");
[/code]

Thats the sending of the message

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.