Hejsa.
Jeg har et meget stort problem, jeg har lavet en hjemmeside, hvor der er en kontaktformular som er lavet i PHP.
Problemet er at når man trykker på "send" skal man stilles videre til en siden, hvor der står tak for din tilmelding og siden hedder:
http://www.himmelbjergegnens.dk/efter-tilmelding.html& det har også virket, men lige pludselig virker det ikke, hvis jeg trykker på "send" kommer der denne kode op i adresselinjen:
http://www.himmelbjergegnens.dk/%3C?navn=pr%F8ve&klasse=9&aar=pr%F8ve&adr=pr%F8ve&zipCity=pr%F8ve&cpr=pr%F8ve&nuSkole=pr%F8ve&nuKlasse=pr%F8ve&persInfo=pr%F8ve&navnF=pr%F8ve&cprF=pr%F8ve&stillingF=pr%F8ve&adrF=pr%F8ve&zipCityF=pr%F8ve&telePrivF=pr%F8ve&teleArbF=pr%F8ve&mobilF=pr%F8ve&mailF=pr%F8ve&navnM=pr%F8ve&mnavnn=pr%F8ve&stillingM=pr%F8ve&adrM=pr%F8ve&zipCityM=pr%F8ve&telePrivM=pr%F8ve&teleArbM=pr%F8ve&mobilM=pr%F8ve&mailM=pr%F8ve&dato=pr%F8ve&elev=pr%F8ve&underskrift=pr%F8ve&Send=SendSiden er:
http://www.himmelbjergegnens.dk/tilmelding.phpOg koden ser sådanne ud:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( isset($_POST["contxt"]) && $_POST["contxt"]=="tilmelding" ) { // Formen er blevet submittet
// Ret disse tre variabler:
$toMail = "gitte.isager@himmelbjergegnens.dk"; // Den e-mail-konto, der skal sendes til
$fromMail = "gitte.isager@himmelbjergegnens.dk"; // Sørg for at skrive en e-mail-adresse, der eksisterer, her
$subject = "Tilmelding fra hjemmesiden"; // Emnet for e-mailen
// Skriv indholdet af mailen i variablen $msg
$msg = <<<STREND
Tilmelding via hjemmesiden.
==================
Navn og adresse:
{$_POST["navn"]} - [{$_POST["cpr"]}]
{$_POST["adr"]}
{$_POST["zipCity"]}
------------------
Ønske: {$_POST["klasse"]}. klasse - {$_POST["aar"]}
Går i: {$_POST["nuKlasse"]}. klasse på {$_POST["nuSkole"]}
------------------
Evt. personlige informationer:
{$_POST["persInfo"]}
------------------
Fader:
{$_POST["navnF"]} - [{$_POST["cprF"]}]
- {$_POST["stillingF"]}
{$_POST["adrF"]}
{$_POST["zipCityF"]}
Kontakt:
Priv: {$_POST["telePrivF"]}
Arb: {$_POST["teleArbF"]}
Mobil: {$_POST["mobilF"]}
E-mail: {$_POST["mailF"]}
------------------
Moder:
{$_POST["navnM"]} - [{$_POST["cprM"]}]
- {$_POST["stillingM"]}
{$_POST["adrM"]}
{$_POST["zipCityM"]}
Kontakt:
Priv: {$_POST["telePrivM"]}
Arb: {$_POST["teleArbM"]}
Mobil: {$_POST["mobilM"]}
E-mail: {$_POST["mailM"]}
------------------
Underskrift:
{$_POST["dato"]}
Elev: {$_POST["elev"]}
Værge: {$_POST["underskrift"]}
STREND;
$header = "From: ".$fromMail."\\n\\n";
$header .= "Content-Type: text/plain; charset=iso-8859-1; format=flowed";
$mailSuccess = mail($toMail, $subject, $msg, $header);
header("Location: efter-tilmelding.html");
exit;
}
?>
<title>Tilmelding</title>
<link rel="stylesheet" type="text/css"
href="css/billeder.css" />
<style type="text/css">
<!--
.style2 {font-size: 12px}
-->
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.1">
<!--
// Mili sekund mellem billederne
var slidespeed=4000
//specifikke images
var slideimages=new Array("img/slideshow/Billede1.jpg","img/slideshow/Billede2.jpg","img/slideshow/Billede3.jpg","img/slideshow/Billede4.jpg","img/slideshow/Billede5.jpg","img/slideshow/Billede6.jpg","img/slideshow/Billede7.jpg","img/slideshow/billede8.jpg","img/slideshow/billede9.jpg","img/slideshow/billede10.jpg","img/slideshow/billede11.jpg","img/slideshow/billede12.jpg")
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder=new Image()
imageholder.src=slideimages
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="css/links.css" rel="stylesheet"
type="text/css" />
<meta name="Generator" content="Stone's WebWriter 4" />
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style5 {font-size: 24px}
-->
</style>
</head>
<body class="baggrund"
onload="MM_preloadImages('img/hesteefter.jpg','img/nuvarendeholdefter.jpg','img/undervisningorange.jpg','img/galleriorange.jpg','img/infoorange.jpg','img/orienteringslobefter.jpg','img/friluftslivefter.jpg','img/adventureefter.jpg','img/forsideorange.jpg')">
<center>
<table border="0" cellpadding="0" cellspacing="0"
width="728">
<tbody>
<tr>
<td colspan="2" align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="banner1" colspan="6"
align="left"> </td>
</tr>
<tr>
<td class="banner2" style="width: 410px;"
cellpadding="0" cellspacing="0" width="410"> </td>
<td width="58"><a href="index.htm"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('forside','','img/forsideorange.jpg',1)"><img
src="img/forside.jpg" name="forside" id="forside"
border="0" height="53" width="58" /></a></td>
<td width="82"><a href="undervisning.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image11','','img/undervisningorange.jpg',1)"><img
src="img/undervisning.jpg" name="Image11" id="Image11"
border="0" height="53" width="82" /></a></td>
<td width="57"><a href="galleri.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image12','','img/galleriorange.jpg',1)"><img
src="img/galleri.jpg" name="Image12" id="Image12"
border="0" height="53" width="57" /></a></td>
<td width="57"><a href="info.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Image13','','img/infoorange.jpg',1)"><img
src="img/info.jpg" name="Image13" id="Image13"
border="0" height="53" width="57" /></a></td>
<td width="66"><a href="tilmelding.php"><img
src="img/tilmeldingorange.jpg" border="0" height="53"
width="66" /></a></td>
</tr>
<tr>
<td colspan="6" align="left">
<table border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td rowspan="3" height="139"
valign="top" width="550"><object height="139"
width="550"><param name="movie" value="banner.swf" />
<embed src="banner.swf" height="139"
width="550"></object></td>
<td class="bgcolor" height="28"
valign="top" width="180"><a
href="Nuvarendehold.html" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Nuvarende Hold','','img/nuvarendeholdefter.jpg',1)"><img
src="img/nuvarendehold.jpg" alt="nuværende hold"
name="Nuvarende Hold" id="Nuvarende Hold" border="0"
height="25" width="180" /></a></td>
</tr>
<tr>
<td class="bgcolor" img=""
src="nuvarendehold.jpg" alt="Nuvarende Hold" height="111"
valign="top" width="180">
<div align="center"><a
href="Nuvarendehold.html"><img
src="img/nuvaerendeelever.jpg" alt="nuværende hold"
align="middle" border="0" height="100" width="134" /></a></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="vstreg" colspan="6"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table align="left" border="0" cellpadding="0"
cellspacing="0" width="730">
<tbody>
<tr>
<td class="bgcolor" rowspan="3"
align="left" valign="top" width="163">
<table border="0" cellpadding="0"
cellspacing="0" width="163">
<tbody>
<tr>
<td class="links" align="left"
width="163"> </td>
</tr>
<tr>
<td class="links"> </td>
</tr>
<tr>
<td class="links"> </td>
</tr>
<tr>
<td class="links"> </td>
</tr>
<tr>
<td class="links"> </td>
</tr>
<tr>
<td class="links"> </td>
</tr>
<tr>
<td class="links"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</tbody>
</table>
</td>
<td class="lstreg" rowspan="3" align="left"
valign="top" width="7"> </td>
<td colspan="5" class="bgcolor"
align="left" valign="top">
<p> </p>
</td>
</tr>
<tr>
<td colspan="6" class="bgcolor"
align="left" valign="top">
<form action="<?=$_SERVER[" php_self=""
]="">
<center></center>
<table border="0" cellpadding="2"
cellspacing="0" width="100%">
<tbody>
<tr>
<td colspan="2">
<p align="center"> <span
class="style5">Tilmelding</span></p>
<p align="center"><font size="-1"><span
class="style5">Midlertidigt ude af drift. Tilmeldingssiden
er oppe at køre igen onsdag d.30 april 2008, senest ved aftentid.</span></font><br />
</p>
</td>
</tr>
<tr>
<td width="42%">Navn:</td>
<td width="58%"><input name="navn"
value="" type="text" /></td>
</tr>
<tr>
<td>Jeg ønsker at gå i:</td>
<td>9.<input name="klasse" value="9"
checked="checked" type="radio" /> 10.<input
name="klasse" value="10" type="radio" /> i
skoleåret: <input name="aar" size="4" value=""
type="text" /></td>
</tr>
<tr>
<td>Adresse:</td>
<td><input name="adr" value=""
type="text" /></td>
</tr>
<tr>
<td>Post og by:</td>
<td><input name="zipCity" value=""
type="text" /></td>
</tr>
<tr>
<td>Cpr.nr:</td>
<td><input name="cpr" size="8"
value="" type="text" /></td>
</tr>
<tr>
<td>Nuværende skole:</td>
<td><input name="nuSkole" value=""
type="text" /> Klasse: <input name="nuKlasse"
size="4" value="" type="text" /></td>
</tr>
<tr>
<td colspan="2"><br />
Eventuelle personlige oplysninger (f.eks. sygdom, handicap eller andre
særlige forhold)</td>
</tr>
<tr>
<td colspan="2"><textarea
name="persInfo" cols="50" rows="8"></textarea></td>
</tr>
<tr>
<td>Faders Navn:</td>
<td><input name="navnF" value=""
type="text" /> Cpr.nr: <input name="cprF" size="8"
value="" type="text" /></td>
</tr>
<tr>
<td width="42%">Stilling:</td>
<td width="58%"><input
name="stillingF" value="" type="text" /></td>
</tr>
<tr>
<td>Adresse:</td>
<td><input name="adrF" value=""
type="text" /></td>
</tr>
<tr>
<td>Post og by:</td>
<td><input name="zipCityF" value=""
type="text" /></td>
</tr>
<tr>
<td>Telefon:</td>
<td>Privat:<input name="telePrivF"
size="7" value="" type="text" /> Arbejde: <input
name="teleArbF" size="7" value="" type="text" /></td>
</tr>
<tr>
<td>Mobil:</td>
<td><input name="mobilF" size="7"
value="" type="text" /></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input name="mailF" size="35"
value="" type="text" /></td>
</tr>
<tr>
<td>Moders Navn:</td>
<td><input name="navnM" value=""
type="text" /> Cpr.nr: <input name="mnavnn"
size="8" value="" type="text" /></td>
</tr>
<tr>
<td width="42%">Stilling:</td>
<td width="58%"><input
name="stillingM" value="" type="text" /></td>
</tr>
<tr>
<td>Adresse:</td>
<td><input name="adrM" value=""
type="text" /></td>
</tr>
<tr>
<td>Post og by:</td>
<td><input name="zipCityM" value=""
type="text" /></td>
</tr>
<tr>
<td>Telefon:</td>
<td>Privat:<input name="telePrivM"
size="7" value="" type="text" /> Arbejde: <input
name="teleArbM" size="7" value="" type="text" /></td>
</tr>
<tr>
<td>Mobil:</td>
<td><input name="mobilM" size="7"
value="" type="text" /></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input name="mailM" size="35"
value="" type="text" /></td>
</tr>
<tr>
<td colspan="2">
<div align="justify">
<blockquote>
<p>Undertegnede
fader/moder/værge erklærer sig hermed indforstået med denne ansøgning.
Vi har gjort os bekendt med ansøgningsproceduren og
optagelsesvilkårene, som er anført som bilag af denne
ansøgningsblanket. Vi/jeg acceptere nævnte vilkår og forpligter os
samtidig til - når skolekontrakten er underskrevet - at betale samtlige
skyldige beløb i henhold til vilkårene, herunder betaling ved evt.
utidig afbrydelse af skoleopholdet.</p>
</blockquote>
</div>
</td>
</tr>
<tr>
<td>Dato:</td>
<td><input name="dato" size="10"
value="" type="text" /></td>
</tr>
<tr>
<td>Elev:</td>
<td><input name="elev" value=""
type="text" /></td>
</tr>
<tr>
<td>Fader/moder/værge:</td>
<td><input name="underskrift"
value="" type="text" /></td>
</tr>
<tr>
<td></td>
<td><input value="Send" name="Send"
type="submit" /></td>
</tr>
</tbody>
</table>
</form>
<p> </p>
<table border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
</tr>
</tbody>
</table>
<p> </p>
</td>
</tr>
<tr>
<td align="left" valign="top" width="135"><a
href="orienteringslob.html" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('orienteringslob','','img/orienteringslobefter.jpg',1)"><img
src="img/orienteringslob.jpg" alt="orienteringsløb"
name="orienteringslob" id="orienteringslob" border="0"
height="131" width="139" /></a></td>
<td align="left" valign="top" width="131"><a
href="adventurerace.html" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('adventurerace','','img/adventureefter.jpg',1)"><img
src="img/adventure.jpg" name="adventurerace"
id="adventurerace" border="0" height="131"
width="130" /></a></td>
<td align="left" valign="top" width="125"><a
href="friluftsliv.html" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('friluftsliv','','img/friluftslivefter.jpg',1)"><img
src="img/friluftsliv.jpg" alt="friluftsliv"
name="friluftsliv" id="friluftsliv" border="0"
height="131" width="126" /></a></td>
<td align="left" valign="top" width="1"></td>
<td class="bgcolor" align="right"
valign="top" width="168"><a href="heste.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('heste','','img/hesteefter.jpg',1)"><img
src="img/heste.jpg" name="heste" id="heste"
border="0" height="131" width="167" /></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="bgcolor" align="center" width="172"> </td>
<td class="bgcolor" align="center" width="558">
<div class="style2" align="left">
<div align="center">Himmelbjergegnens Natur
& Idrætsefterskole - Vesterled 1 - Tlf: 86898399 - <a
href="mailto:en@email.dk?subject=ang:&body=Til+himmelbjergegnens+Natur+og+Idr%E6tsefterskole.">en@email.dk</a></div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</body>
</html>
Jeg håber virkelig i har nogle ideer til hvad det kan være, da jeg ikke er særlig skarp til php.
Med Venlig Hilsen
Mads