• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved PHP Onclick image goto website "..."

freddzor11

Member
Joined
May 25, 2009
Messages
695
Reaction score
5
As the topic says
here is my script


Code:
<?php
if(!defined('INITIALIZED'))
    exit;

if($subtopic == "contact")
{
    $main_content .= '<B>'.htmlspecialchars($config['server_name']).' Contact</B><BR>';
}
$main_content .= '
<h1>E-mail: email</h1>
<br>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTHd9yXHLbCUxufBloGe7Yy5G4aaMw77miYGM_-wC2t0MK-kOci"






';
if($subtopic == "contact")
{
    $main_content .= '<';
}

?>
 
That script is pretty weird, if contact print that if contact print that.
Did you want it like this?
PHP:
if($subtopic == "contact"){
true
}
if(!$subtopic == "contact"){
false
}
 
what? I don't know, I did not made this script

Im talking about this
PHP:
if($subtopic == "contact")
{
$main_content .= '<';
}

and you use
PHP:
if($subtopic == "contact")
{
at the top

In that case you can remove the
PHP:
if($subtopic == "contact")
{
$main_content .= '<';
}

and the < will be removed.
 
jK4cgG.png


does this look better -.-
 
Im talking about this
PHP:
if($subtopic == "contact")
{
$main_content .= '<';
}

and you use
PHP:
if($subtopic == "contact")
{
at the top

In that case you can remove the
PHP:
if($subtopic == "contact")
{
$main_content .= '<';
}

and the < will be removed.
and I don't even have an < at the website, I fixed it
 
Code:
<?php
if(!defined('INITIALIZED'))
    exit;

if($subtopic == "contact")
{
    $main_content .= '<B>'.htmlspecialchars($config['server_name']).' Contact</B><BR>';
}
$main_content .= '
<h1>E-mail: mail</h1>
<h4>When writing an email please be detailed with your questions.</h4>
<br>

<h1>Facebook:</h1>

<a href="link"><img src="Image"

<br>

<h4>Click on the image above to get to our ----- page, where you can enjoy the latest updates and get your questions answered within 12 hours.</h4



';
if($subtopic == "contact")
{
    $main_content .= '<';
}

?>

Why does the text below the image gets like an link text and not like the one below email?
 
Code:
<?php
if(!defined('INITIALIZED'))
exit;

if($subtopic == "contact")
{
$main_content .= '<B>'.htmlspecialchars($config['server_name']).' Contact</B><BR>

<h1>E-mail: mail</h1>
<h4>When writing an email please be detailed with your questions.</h4>
<br>

<h1>Facebook:</h1>

<a href="link"><img src="Image"

<br>

<h4>Click on the image above to get to our ----- page, where you can enjoy the latest updates and get your questions answered within 12 hours.</h4

';
}
?>

Give that a try A tip: if you got an fb page you can get a java script from fb that shows a responsive like button and how many likes you got etc.
 
Code:
<?php
if(!defined('INITIALIZED'))
exit;

if($subtopic == "contact")
{
$main_content .= '<B>'.htmlspecialchars($config['server_name']).' Contact</B><BR>

<h1>E-mail: mail</h1>
<h4>When writing an email please be detailed with your questions.</h4>
<br>

<h1>Facebook:</h1>

<a href="link"><img src="Image"

<br>

<h4>Click on the image above to get to our ----- page, where you can enjoy the latest updates and get your questions answered within 12 hours.</h4

';
}
?>

Give that a try A tip: if you got an fb page you can get a java script from fb that shows a responsive like button and how many likes you got etc.
already got that, and no this is not working...
 
Back
Top