Kan ikke fange $_POST fra form i Modalbox??
Hej.Jeg har et stort problem her, da jeg ikke kan fange mit POST fra en form i en Modalbox. Jeg køre en JQuery Modalbox, hvor jeg også har Input validering på - begge disse ting er testet og virker...
Nu kan jeg bare ikke flytte input data?? (Man skal indsætte sin e-mail, hvis man har glemt sit password, så sættes det til brugeren)
Her koden jeg Poster fra: (modalbox.php)
-------------------------------------------------------------------
<!-- Start of Simple win Modal LIVE LIVE -->
<div id="dialog" class="window">
<br>
<h3>Glemt din adgangskode?</h3>
<br/>
<form action="valmail_pass.php" name="myform" id="myform">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="right">
indtast din e-mail:
</td>
<td>
<input type="text" name="Email" />
</td>
</tr>
<tr>
<td align="right"></td>
<td>
<div id="myform_errorloc" class="error_strings">
</div>
</td>
</tr>
<tr>
<td align="right"></td>
<td>
<input type="submit" value="Send" name="Godkend" />
</td>
</tr>
</table>
</form>
<script language="JavaScript" type="text/javascript"
xml:space="preserve">//<![CDATA[
//You should create the validator only after the definition of the HTML form
var frmvalidator = new Validator("myform");
frmvalidator.EnableOnPageErrorDisplaySingleBox();
frmvalidator.EnableMsgsTogether();
//frmvalidator.addValidation("FirstName","req","Please enter your First Name");
//frmvalidator.addValidation("FirstName","maxlen=20", "Max length for FirstName is 20");
//frmvalidator.addValidation("FirstName","alpha_s","Name can contain alphabetic chars only");
//frmvalidator.addValidation("LastName","req","Please enter your Last Name");
//frmvalidator.addValidation("LastName","maxlen=20","For LastName, Max length is 20");
frmvalidator.addValidation("Email","maxlen=50");
frmvalidator.addValidation("Email","req");
frmvalidator.addValidation("Email","email");
//frmvalidator.addValidation("Phone","maxlen=50");
//frmvalidator.addValidation("Phone","numeric");
//frmvalidator.addValidation("Address","maxlen=50");
//frmvalidator.addValidation("Country","dontselect=000");
//]]>
</script>
<br/>
<a href="#"class="close"/>Luk</a>
</div>
<!-- END of Simple win Modal -->
<?php
Her modtager siden: (valmail_pass.php)
-------------------------------------------------------------------
echo $_POST['Email']; //intet
if(isset($_POST['Email']))
{
echo $_POST['Email'];
exit();
}
else
{
echo 'Fejl'; //JEG FÅR DENNE ECHO
exit();
}
?>