Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,500 members, 7,819,816 topics. Date: Tuesday, 07 May 2024 at 12:29 AM

Script Help Needed - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Script Help Needed (764 Views)

Help Needed In Php Programming Language / Matlab Help Needed,please / Help Needed With A Php Piping Script (urgent) (2) (3) (4)

(1) (Reply) (Go Down)

Script Help Needed by switchmax8: 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 ,
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: 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)

Best Operating System For Programming! / Mod For Cubecart Or Other Similar Program / In Need Of A Laptop

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.