my code

Snippet options

Download: Download snippet as php-link-ueberpruefung.php.
Copy snippet: For this you need a free my code account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>php Linkerkennung</title>
			if (isset($_POST['submit']))
				$link = mysql_real_escape_string($_POST['url']);
				if (empty($link) or $link =="")
					$error_msg = "Die Url ist nicht richtig (1)";
					if (strpos(strtolower($link), "") == true)
						$link_sorte = "1"; echo"1"; exit;
					if (strpos(strtolower($link), "") == true)
						$link_sorte = "2";echo"2"; exit;
					$error_msg = "Die Url ist nicht richtig (2)";
 <?php if(isset($error_msg) && !empty($error_msg)) : ?><br><br>
        <div style="border:2px solid #F33;background-color: #C00; padding: 10px; ">
            <?php echo $error_msg; ?>
        <?php endif; ?>

        <?php if(isset($success_msg) && !empty($success_msg)) : ?><br><br>
        <div style="border:2px solid #3F3;background-color: #390; padding: 10px; ">
            <?php echo $success_msg; ?>
        <?php endif; ?>
<form  method="post">
<input type="text" value="" name="url" />
<input type="submit" value="absenden" name="submit"  />


Create a free my code account now.

my code is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.