Hi friends i am searching for the autoreplying for a mail i recived in the position af administrator. Is it possible.If so please help me out.

hi, if a form is submitted

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

in ex.php

<script language="php">$email = $HTTP_POST_VARS[email];

$mailto = "$email";

$mailsubj = "Reply to your form sub...";

$mailhead = "From: $email\n";

reset ($HTTP_POST_VARS);

$mailbody = "Values submitted from web site form:\n";

while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }

if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }

</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.