Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2010, 12:58 PM
Authorized User
 
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
Default Multiple form actions

Dear all,
I have the following problem.

I want to do the following:

A form has text boxes to capture client information and upon clicking the submit button of that form an email will be sent to the client containing all the information that the client entered and then a PDF will be generated and be saved into a pre-specified local folder.

I have done the emailing part (very easy) but I couldn't install pdflib in my server so I have chosen FPDF (a php class) to generate PDF. Now I am unable to make FPDF to save the PDF into a specific directory in my local machine.

So if anyone knows how please let me know.


Next is, I can't handle 2 actions from a single form (sending email and generating PDF) I have the code for generating email in the same file as the form in a <?php ?> block. And the PDF generation is in another .php file.

So I need to call the generatePDF.php file from my form action but I also need the form action to have <?php print $PHP_SELF ?> so that the script calls itself and the email is sent.

I am very novice in this...please help me.

Thank you in advance.

Skhan
 
Old December 8th, 2010, 10:07 AM
Authorized User
 
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
Default

No one replied!!! I am asking help from the moderator to help me solve this problem!





Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple actions from one onclick jpullam Javascript How-To 6 January 2nd, 2009 08:37 PM
trigger actions b00gieman Beginning VB 6 1 September 25th, 2007 07:23 AM
e-mail actions... ruhin Beginning PHP 4 May 4th, 2005 10:52 AM
Creating a log file from actions taken in a form lguzman Access VBA 2 November 3rd, 2004 10:58 AM
Multiple Form Instances in a single form? gman997 ASP.NET 1.0 and 1.1 Basics 1 March 30th, 2004 06:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.