Re[2]: [PHP] saving form data
Hello Charlie, Monday, February 23, 2004, 10:15:17 PM, you wrote: CFI> It's just a matter of development time; if there's a way to CFI> use the Perl mail script with a PHP data saving script, it CFI> would save time. If I do have to rewrite the whole thing in CFI> PHP, how would I accept uploaded file attachments and attach CFI> them to the emailed form results? Then how about in reverse? Add something to the end of the Perl script that passes the values to a PHP script? It could even do it via the query string, maybe also passing an md5 encoded password that only your two scripts know (in order to stop someone spoofing your script). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] saving form data
Hello Charlie, Monday, February 23, 2004, 9:27:07 PM, you wrote: CFI> Thanks, but how do I get the info submitted to the PHP CFI> script to access the data in the first place? Since the CFI> target of the form is the Perl script, the submit button CFI> submits the form to the Perl script; can I add a second CFI> button of some type to submit the form to a different CFI> location (the PHP script)? Or can I use the DOM (ie CFI> document.formname.fieldname.value) to grab the data straight CFI> from the fields and then pass it on somehow? You can't make one form submit to two different scripts sadly, but to be honest if you're going to write a PHP script to capture this information - why not make it do what the Perl formmail script does too? (i.e. send the email) and remove the Perl script from the equation? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php