Parašė ramunasz· 2008 Geg. 17 11:05:55
#9
Susirandi contact.php faile šes eilute :
opentable($locale['400']);
echo $locale['401']."<br><br>
<form name='userform' method='post' action='".FUSION_SELF."'>
<table align='center' cellpadding='0' cellspacing='0' class='tbl'>
<tr>
<td width='100'>".$locale['402']."</td>
<td><input type='text' name='mailname' maxlength='50' class='textbox' style='width: 200px;'></td>
</tr>
<tr>
<td width='100'>".$locale['403']."</td>
<td><input type='text' name='email' maxlength='100' class='textbox' style='width: 200px;'></td>
</tr>
<td width='100'>Pavardė:</td>
<td><input type='text' name='pavarde' maxlength='50' class='textbox' style='width: 200px;'></td>
<tr><td valign='top' width='90'>".$locale['405']."</td>
<td><textarea name='message' rows='10' cols='58' class='textbox'></textarea></td>
</tr>
<tr>
<td align='center' colspan='2'>
<input type='submit' name='sendmessage' value='".$locale['406']."' class='button'>
</td>
</tr>
</table>
</form>\n";
closetable();
}
Čia prisidedi eilučių, kad rodytų skiltis kures reikia pildyt. Tada susirandi contcat.php faile šią vietą
if (isset($_POST['sendmessage'])) {
$error = "";
$mailname = substr(stripinput(trim($_POST['mailname'])),0,50);
$email = substr(stripinput(trim($_POST['email'])),0,100);
$subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))),0,50);
$message = descript(stripslash(trim($_POST['message'])));
Rašai :
if (isset($_POST['sendmessage'])) {
$error = "";
$mailname = substr(stripinput(trim($_POST['mailname'])),0,50);
$email = substr(stripinput(trim($_POST['email'])),0,100);
$pavarde = substr(stripinput(trim($_POST['pavarde'])),0,50);
$subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))),0,50);
$message = descript(stripslash(trim($_POST['message'])));
$message = "Vardas:".$mailname."\nPavarde:".$pavarde."\n\n".$message;
Čia turi įrašyt kintamajį ir kur yra
$message = "Vardas:".$mailname."\nPavarde:".$pavarde."\nTelNumeris:".$TelNumeris."
[/code]
/n Reiškia nauja eilutė panašei kaip <br> jei kas neaišku klausk :)
Redagavo ramunasz· 2008 Geg. 17 18:05:24