Mam subor formulare.php kde mam ulozene vsetky formulare a includujem ho na zaciatku.
#formulare.php
$mail = "Hello,<br /><br /> you have registered at <a href=\"http://musice.com\">http://musice.com</a>,but you need to activate your acoount before you can use it. If you did not activate it yet, click here:<br /><a href=\"http://musice.com/activate/$activate\"> ... ate</a><br /><br />Your login:{$_POST['login']}<br />Your password:{$_POST['password']}<br /><br />You can log in here: <a href=\"http://musice.com/login\">http://musice ... gin</a><br /><br />Thank you for using our service.";
A mam subor registracia.php
#registracia.php
$activate = generuj_heslo(40);
mail ('[email protected]', "predmet", $mail, "MIME-Version: 1.0\nFrom: Music <[email protected]>\nContent-Type: text/html; charset=\"UTF-8\"\n");
A potrebujem aby mi $activate definovalo nanovo,pretoze ked includovalo formulare.php tak $activate bolo nezname.Neviete ako?
Premenne v php
-
audiotrack
VIP
- Príspevky: 25958
- Registrovaný: 09 sep 2005, 18:39
- Kontaktovať používateľa: