Re: form with two actions

From: Date: Wed, 13 Nov 2002 17:21:01 +0000
Subject: Re: form with two actions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-124251@lists.php.net to get a copy of this message
in php, do $perl=fopen('http://localhost/your_perl_script.pl?data='.$your_data,'r'); fclose($perl); optionaly, you can read from the file handler to get some feedback from the perl script Scott wrote:
I just realized I should have been more specific with my question. What I want to do is use php to submit registration data to the database and then send part of the data to a perl script to be encrypted and sent in an email. I have to use perl for the encryption because of user permissions on the server-Php and GPG run as different users. So I have to send the data in 2 different directions rather than keep it in the same script. I would like to be able to do it without having the user do double entries. If I can still do this without two submits, then I guess I do need an example. Thanks for the responses, SW On Wednesday 13 November 2002 07:16 am, you wrote:
For that example, you don't need two submits... the same script that handles the submitted data for the database can send the email... usually it's only a problem if one form has to be submitted to two servers, or something... do you need an example? Justin on 13/11/02 3:05 PM, Scott (gildedpage@comcast.net) wrote:
Hello I would like to know if it is possible to use Php to make a form perform 2 actions by having the user click on a single submit button. For instance, send data to a database and email it simultaneously. I would prefer not to use javascript. If someone could point me to an example I would appreciate it Thanks, S.W.
     
Justin French -------------------- Creative Director http://Indent.com.au Web Developent & Graphic Design --------------------


« previous php.general (#124251) next »