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
php kreten

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 21.07.2005 15:17    Post subject: php kreten Add user to your forum ignore list Reply with quote

Evo primjer:

<?

$to = "mojmail@mojsitel.hr";
$msg = $_POST["name"] \n\n;
$msg .= $_POST["message"] \n\n;

mail($to, $subject, $msg, "From: Madame website\nReply-To: $email\n");

?>
______________
I to opet ne radi.

Zarez vamo, navodnici tamo i opet .... NE RADI!

Ajd nek mi netko pametniji od mene riješi ovu navodno jednostavnu php skripticu jerbo ću ja poludit!

Brick wall

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
xpi



Joined: 21 Jan 2004
Posts: 33

PostPosted: 21.07.2005 15:44    Post subject: Re: php kreten Add user to your forum ignore list Reply with quote

Moraš znakove \n staviti u neki string, i tek onda ćeš ih moći spojiti s drugim stringovima. Dakle, umjesto ovog:
Code:
   $msg = $_POST["name"] \n\n;
   $msg .= $_POST["message"] \n\n;

Stavi ovako:
Code:
   $msg = $_POST["name"] . "\n\n";
   $msg .= $_POST["message"] . "\n\n";

To mora raditi. Wink
Back to top
View user's profile Send private message
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 21.07.2005 15:47    Post subject: Re: php kreten Add user to your forum ignore list Reply with quote

xpi wrote:
Moraš znakove \n staviti u neki string, i tek onda ćeš ih moći spojiti s drugim stringovima. Dakle, umjesto ovog:
Code:
   $msg = $_POST["name"] \n\n;
   $msg .= $_POST["message"] \n\n;

Stavi ovako:
Code:
   $msg = $_POST["name"] . "\n\n";
   $msg .= $_POST["message"] . "\n\n";

To mora raditi. Wink


THNX Very Happy

isprobat ću to odmah

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 21.07.2005 22:04    Post subject: Add user to your forum ignore list Reply with quote

imaš mail.. Wink Arrow
Back to top
View user's profile Send private message Visit poster's website
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 22.07.2005 08:27    Post subject: Add user to your forum ignore list Reply with quote

mile wrote:
imaš mail.. Wink Arrow


Puno hvala. Borim se ja s tim i totalno me ne ide Smile

Pročačkat ću ovo što si mi poslao pa ti javim rezultat. see ya

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 22.07.2005 11:05    Post subject: Add user to your forum ignore list Reply with quote

MILE LEGENDO!!!
Ovo što si mi poslao stvarno radi Very Happy opet imaš piće.

E sad... pošto ja podatke iz Flash forme šaljem kao varijable POST metodom, stiže mi mail kao da nisu ispunjena polja (unešeni podaci se ne proslijeđuju već samo prazan mail)

Dakle trebalo bi malo modificirati ovu php skriptu.

//
<?php
if($sentemail == "2"){
include("neuspjelo.htm");

}else{

$num = $sentmessage + 1;
setcookie("sentemail","$num",time()+600);

$email = "Poruka od:\t$name\nE- Mail:\t$thereemail\nPoruka:\t$message\nIP:\t$REMOTE_ADDR\n\n";
$to = "mojmail@mojsite.hr";
$subject = "Poruka sa web stranice";
$mailheaders = "From: $thereemail <> \n";
$mailheaders .= "Reply-To: $thereemail\n\n";
mail($to, $subject, $email, $mailheaders);
include("uspjelo.htm");
}
?>

//
eto...
any ideas?? Question

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 22.07.2005 22:04    Post subject: Add user to your forum ignore list Reply with quote

vee.jay wrote:
opet imaš piće.
(...)
any ideas?? Question


Very Happy
ovo za flash neznam, to će ti bolje znati netko tko u flashu radi..
Back to top
View user's profile Send private message Visit poster's website
xpi



Joined: 21 Jan 2004
Posts: 33

PostPosted: 22.07.2005 22:41    Post subject: Add user to your forum ignore list Reply with quote

Pomaže li ako dodaš ovo negdje na početak skripte (naprimjer, odmah nakon <?php):
Code:
$name = $_POST["name"];
$thereemail = $_POST["thereemail"];
$message = $_POST["message"];

Može biti da ti server ne postavlja te varijable automatski (što je, zapravo, dobro, jer navikava na oprez)...
Back to top
View user's profile Send private message
vee.jay



Joined: 24 Jun 2004
Posts: 52
Location: croatia

PostPosted: 29.07.2005 15:29    Post subject: Add user to your forum ignore list Reply with quote

xpi wrote:
Pomaže li ako dodaš ovo negdje na početak skripte (naprimjer, odmah nakon <?php):
.


Eto od ushita zaboravih odgovoriti.
DA ... Pomaže i sve radi.
Puno hvala obojici.. (mile, xpi)

Smile Smile Smile

seeya

_________________
mali studio ... velikih ideja
http://www.malistudio.hr
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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