Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_COOKIE['adresse'])) {
- echo $_COOKIE['adresse'];
- }
- include 'postnummere.php';
- $time = time()+3600;
- $url_egedal = "<meta http-equiv='refresh' content='0;url=http://www.tilsalgi.dk/cms/brugtmarked-i-egedal'>";
- //sammenligning af postkoder og redirection
- if (isset($_POST['postnr'])) {
- if(in_array($_POST['postnr'], $egedal_kom)) {
- setcookie("adresse","$url_egedal",$time);
- echo "$url_egedal";
- }
- elseif(in_array($_POST['postnr'], $ballerup_kom)) {
- echo "<meta http-equiv='refresh' content='0;url=http://www.tilsalgi.dk/cms/brugtmarked-i-ballerup'>";
- }
- elseif(in_array($_POST['postnr'], $kobenhavn_kom)) {
- echo "<meta http-equiv='refresh' content='0;url=http://www.tilsalgi.dk/cms/brugtmarked-i-kobenhavn'>";
- }
- else
- {
- echo "<meta http-equiv='refresh' content='0;url=http://tilsalgi.dk/ejfundet.php'>";
- }
- }
- ?>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <center>
- <p> </p>
- <p> </p>
- <p> </p>
- <img src="http://www.tilsalgi.dk/cms/images/web_assets/logo_mobile.png" /><p> </p><p> </p>
- <table width="300" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="center">
- <b><h2>Indtast dit postnummer</h2>
- </b>
- <i>Huskes automatisk til næste besøg</i>
- <form name="form" method="post">
- <input name="postnr" type="text" size="10" maxlength="4">
- <input type="submit" value="OK">
- </form></td>
- </tr>
- </table>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement