Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Kontakt forma s stranice

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
crazyhorze



Joined: 25 May 2010
Posts: 19
Location: Split

PostPosted: 08.03.2012 20:28    Post subject: Kontakt forma s stranice Add user to your forum ignore list Reply with quote

Poštovani,
Nikako nemogu natirat formu da mi počmu mailovi stizat na mail .... gdje griješim ...

evo koda iz stranice
<!--Start Contact Form-->
<div id="contact_form">
<script type="text/javascript" src="mail/validation.js"></script>
<form name="contact" method="post" action="mail/sendmail.php" onsubmit="return Validations();">
<label>Ime: </label><input class="input1" id="name" name="name" type="text" value="" />
<label>e-mail: </label><input class="input1" id="email" name="email" type="text" value="" />
<label>Telefon: </label><input class="input1" id="phone" name="phone" type="text" value="" />
<label>Upit: </label><textarea class="input2" name="comments" id="comments" cols="" rows=""></textarea><br />
<input type="image" src="images/submit-button.jpg" alt="" value="" />
</form>
</div>
<!--End Contact Form-->


kod od sendmail.php
<?php
require("class.phpmailer.php");
$name = $_POST['name'];
$email = $_POST['email'];
$message_body = "";
$message = '

<table width="85%" border="0">
<tr>
<td align="right"><strong>Name</strong></td>
<td align="center" width="10%">:</td>
<td>'.$name.'</td>
</tr>

<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

<tr>
<td align="right"><strong>Email</strong></td>
<td align="center" width="10%">:</td>
<td>'.$email.'</td>
</tr>

<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

<tr>
<td align="right"><strong>Phone No.</strong></td>
<td align="center" width="10%">:</td>
<td>'.$_POST['phone'].'</td>
</tr>

<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

<tr>
<td align="right"><strong>Comments</strong></td>
<td align="center" width="10%">:</td>
<td>'.$_POST['comments'].'</td>
</tr>

<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

</table>';

$message_body .= '
Inquiry has been submited by <strong> '.$name.'</strong>. <br /><br />
<span style="color:#ff0000;font-size:14px;font-weight:bold;">
Contact Form</span> <br /><br />
Information is detailed below :<br /><br />'.$message;

$mail = new PHPMailer();
$mail->Mailer = "sendmail";
$mail->From = $email;
$mail->FromName = $name;

// DODATI EMAIL OVDJE

$mail->AddAddress('info@bigfoot-designs.com',"Inquiry Information");
$mail->AddAddress('toni.galic83@gmail.com',"Inquiry Information");


$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML

$mail->Subject = "Contact Us Form";
$mail->Body = $message_body;
$mail->Send();

// ADRESA POTVRDE SLANJA

echo '<script>location.href="http://bigfoot-designs.com/hvala.html";</script>';
exit();
?>


Unaprijed hvala

_________________
<a>Moj portfolijo - BigFoot Designs</a>
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gibbo



Joined: 26 Jul 2006
Posts: 17
Location: localhost

PostPosted: 10.03.2012 00:21    Post subject: Add user to your forum ignore list Reply with quote

Problem ti je u slanju forme, nisi pozvao događaj submit, imas <input type='images' .... on je samo gumb sa slikom, trebas ili staviti obican submit tipa
<input type="submit" value="pošalji" / >
ili staviti pozivanja funckije u javascriptu koja je ce napraviti submit
trebas pozvati tj. moras staviti funkciju onClick na onaj image input i pozvati
Code:

document.form_name.submit();

form_name se nalazi u <form name="form_name" ......>
mozes bilo koje ime staviti samo mora biti isto na oba mjesta
Back to top
View user's profile Send private message Visit poster's website
crazyhorze



Joined: 25 May 2010
Posts: 19
Location: Split

PostPosted: 10.03.2012 12:20    Post subject: Add user to your forum ignore list Reply with quote

probao ali opet ne radi Sad

_________________
<a>Moj portfolijo - BigFoot Designs</a>
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 10.03.2012 19:30    Post subject: Add user to your forum ignore list Reply with quote

Što si probao, Javascript ili <input type="submit" value="Pošalji" /> ?

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
crazyhorze



Joined: 25 May 2010
Posts: 19
Location: Split

PostPosted: 11.03.2012 12:19    Post subject: Add user to your forum ignore list Reply with quote

input type

_________________
<a>Moj portfolijo - BigFoot Designs</a>
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group