Re: [PHP] form with two actions

2002-11-13 Thread Marek Kilimajer
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 p

Fwd: Re: [PHP] form with two actions

2002-11-13 Thread Scott
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

Re: [PHP] form with two actions

2002-11-13 Thread Scott
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

Re: [PHP] form with two actions

2002-11-13 Thread Justin French
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 ([EMAIL

Re: [PHP] form with two actions

2002-11-12 Thread rija
If you want php to do it in the remote server (your case), of course, you do not have to use javascript // Just do like this if (isset($_POST['submit'])) // to verify that browser are sending something correctly { // --> record posted data into database and after // --> send mail } But if you w

Re: [PHP] form with two actions

2002-11-12 Thread Cesar Aracena
Hi Scott, what you want to do can be acomplished just by telling php what to do in order... for example run the $query to insert the data into the DB and after that, run a mail function that sends the mail. IF you want to be more elegant in your scripting, do the mailing within an IF clause so the