Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

MySQL email form HELP

[es] :: PHP :: MySQL email form HELP

[ Pregleda: 379 | Odgovora: 1 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

masuper

Član broj: 85799
Poruke: 3
213.244.197.*



Profil

icon MySQL email form HELP26.04.2006. u 11:15

JEDNOSTAVNO, NE RADI !!! Imam upitnik koji ne radi .... u cemu gresim!

1. upitnik_potencijalni.php

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Upitnik potencijalni</title>
</head>

<body topmargin="0" leftmargin="0" bgcolor="#EDE7D4">

<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800" id="AutoNumber1" cellpadding="0" height="100%">
<tr>
<td valign="top">
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" cellpadding="0">
<tr>
<td style="font-family: Verdana; color: #0A3162; font-size: 10pt">


<form method="post" action="sendmail.php">

<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />



<table border="0" cellspacing="0" style="border-collapse: collapse; font-family: Verdana; color: #0A3162; font-size: 10pt" bordercolor="#111111" width="101%" id="AutoNumber3" cellpadding="0" height="80">
<tr>
<td width="50%" height="22"><font size="2">Naziv preduze&#263;a:</font></td>
<td width="50%" height="22">
<input type="text" name="naziv" size="50" /></td>

</tr>
<tr>
<td width="50%" height="22">Email</td>
<td width="50%" height="22">
<input type="text" name="email" size="30" /></td>
</tr>
<tr>
<td width="50%" height="22"><font size="2">Mati&#269;ni broj: </font>
</td>
<td width="50%" height="22">
<input type="text" name="mb" size="30" /></td>
</tr>
<tr>
<td width="50%" height="20">Registracioni broj:</td>
<td width="50%" height="20">
<input type="text" name="rb" size="30" /></td>
</tr>
<tr>
<td width="50%" height="16">Datum osnivanja:</td>
<td width="50%" height="16">
<input type="text" name="datum" size="14" /></td>
</tr>
<tr>
<td width="50%" height="16">Sedište preduze&#263;a:</td>
<td width="50%" height="16">
<input type="text" name="sediste" size="30" /></td>
</tr>
<tr>
<td width="50%" height="16">Adresa sedišta:</td>
<td width="50%" height="16">
<input type="text" name="adresa" size="30" /></td>
</tr>
<tr>
<td width="50%" height="16"></td>
<td width="50%" height="16"></td>
</tr>
<tr>
<td width="50%" height="16">Formular poslao:</td>
<td width="50%" height="16">
<input type="text" name="poslao" size="30" /></td>
</tr>
</table>
<p>&nbsp;
<input type="submit" value="Posalji upitnik" name="B1" style="color: #EDE7D4; font-family: Verdana; font-size: 10pt; background-color: #0A3162" />
<input type="reset" value="Ponisti" name="B2" style="font-family: Verdana; font-size: 10pt; color: #EDE7D4; background-color: #0A3162"></p>
</form>
<p>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>

</body>

</html>




2. sendmail.php

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>

<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
<!-- Reminder: Change 'YourEmail' to Your real email -->

<?php
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo "<h2>Unesite validnu e-mail adresu</h2>\n";
$badinput = "<h2>Greska !!!</h2>\n";
}
if(empty($naziv) || empty($mb) || empty($rb) || empty($datum) || empty($sediste) ||empty($adresa) || empty($poslao)) {
echo "<h2>Popunite trazena polja</h2>\n";
}
echo $badinput;

$todayis = date("l, F j, Y, g:i a") ;
$message = " $todayis [EST] \n
Poslao: $visitor ($email)\n
IP adresa : IP = $ip \n
Browser: $httpagent \n
Referral : $httpref \n
";

$from = "From: $poslao\r\n";


mail("zokist@verat.net", $subject, $message, $from);

?>

<p align="center">
Datum: <?php echo $todayis ?>
<br />
Hvala : <?php echo $visitor ?> ( <?php echo $poslao ?> )
<br />

Poruka:<br />
<?php $notesout = str_replace("\r", "<br/>", $poslao);
echo $notesout; ?>
<br />
<?php echo $ip ?>

<br /><br />
<a href="upitnik_potencijalni.php"> Vrati se na prethodnu </a>
</p>

</body>
</html>

26.04.2006. u 11:15 

Dejan Topalovic
Dejan Topalović
Oracle DBA & PL/SQL Developer, Erste Sparinvest (..
Vienna

Član broj: 635
Poruke: 1374
*.infonova.at.

ICQ: 20142302
Sajt: www.outsourcing-it.com


Profil

icon Re: MySQL email form HELP26.04.2006. u 11:54
Kakve veze ovo ima sa MySQL-om?
26.04.2006. u 11:54 

[es] :: PHP :: MySQL email form HELP

[ Pregleda: 379 | Odgovora: 1 ]

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.