₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,198 members, 8,420,770 topics. Date: Friday, 05 June 2026 at 11:00 AM

Toggle theme

Script Help Needed - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingScript Help Needed (872 Views)

1 Reply (Go Down)

Script Help Needed by switchmax8(op): 2:01pm On Dec 11, 2009
fellow php programmers,
pls,i need a php script that will trigger message whenever someone fill my contact page.
Re: Script Help Needed by segsalerty(m): 4:29pm On Dec 11, 2009
try to be more expressive ,
huh
Re: Script Help Needed by yawatide(f): 5:35pm On Dec 11, 2009
google php forms and oh, don't forget to include front end and back end validation
Re: Script Help Needed by switchmax8(op): 9:05am On Dec 12, 2009
yewatide,
what i wanted is whenever someone fill a contact page the contact page should trigger a message to their email like "Welcome to Switchmax Design you will be attended soon"
Re: Script Help Needed by nickae: 12:23pm On Dec 12, 2009
you can use a mail php function to do it just add these lines after your insert query



@mail($to, $subject, $body, $from);


where
$to = the email it will go to
$subject= subject of the mail
$body = the content of the mail
$from = you.

e.g
<?php

//after your insert query

$to = "$email"; //$email is the variable that holds that applicant email
$subject = "Application Has Been Received";
$body = "Your Application is been processed and a response will be sent to you within the next 24 hours";
$from = "Administrator";

@mail($to, $subject, $body, $from);


?>


Please send me a mail at nickmerah@gmail.com if you have any more queries.

Happy Scripting
Re: Script Help Needed by yawatide(f): 12:54pm On Dec 12, 2009
switchmax, I understood you perfectly, hence saying what I said. I don't want to risk being banned by the bot otherwise I would have posted an actual link. Sorry.

nickae:
@mail($to, $subject, $body, $from);
I am always cautious using "@" in most cases - what happens if there is an error? How will you detect it? I prefer surrounding my mail() with an if statement. Then if true, the email is sent.

Of course there are 1000+ ways to skin a cat. I am just stating a case for one of them wink
1 Reply

Help Needed In Php Programming LanguageMatlab Help Needed,pleaseHelp Needed With A Php Piping Script (urgent)234

Do You Hate Building Forms?Ideas on this?sell