ckennerdale
Programmer
I am trying to set up a form in Director which send its contents to a recipient via email in PHP using mail().
Does anyone have expereince with this.
I am using 'postnettext' in Director and if I link it to a perl mail script (formmail.pl) everything works. But I need to be able to send attachments and have written a script in PHP which works fine with a normal html based form.
Is anyone aware of any potential pitfalls?
A problem that I see is that my srcipt is held in a function which calls global variables. With my html form, when it posts the variables the form has the same valu as my funtion and thus triggers it.
If my script is not 'wrapped' within a function is does not seem to trigger simply by posting the variable in director?!
Caspar Kennerdale
Senior Media Developer
Does anyone have expereince with this.
I am using 'postnettext' in Director and if I link it to a perl mail script (formmail.pl) everything works. But I need to be able to send attachments and have written a script in PHP which works fine with a normal html based form.
Is anyone aware of any potential pitfalls?
A problem that I see is that my srcipt is held in a function which calls global variables. With my html form, when it posts the variables the form has the same valu as my funtion and thus triggers it.
If my script is not 'wrapped' within a function is does not seem to trigger simply by posting the variable in director?!
Caspar Kennerdale
Senior Media Developer