Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to Perl...Can you use perl and php for the same form? 1

Status
Not open for further replies.

shyster6969

Programmer
Joined
Jan 27, 2006
Messages
1
Location
US
I am new to CGI/Perl. I have a PHP page that updates a data base, and was wondering if I can run a Perl script that would e-mail me the results of the form, and to the person who filled it out as well? I know I can do either of those things seperatley, but can I do them on the same page? Thanks in advance for any help!
 
You could have PHP forward the request to your Perl script once it's done processing the database update, but if you're already using PHP, it might make more sense to just have PHP handle the e-mailing.

Alternately, another option would be to add a trigger to the database that kicks off the Perl script and sends the e-mails upon insertion.

- George
 
I'd agree that there's no point in mixing programming languages for a task that can be accomplished by either. I'd advise you to pick one and stick with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top