-
Trigger an email before submitting form to remote URL
Hi all,
I have a html form where i capture few values from users and then post it to a remote location after validating the mandatory fields.
I would like to get an email of captured form values before submitting the form to the remote location. Currently i have only one form action.
Any ideas or suggestions?
This is what i need:
Capture values (html form)
validate (using javascript)
send mail (php mail) - only part i need to integrate
submit form values to remote URL
Thanks in advance.
-
-
It's very difficult to submit the form twice (which is basically what you want to do-- once to your server, and once to a different server).
You can try to use curl() or other possible functions like that, but as I said it will get complex.
This is an advanced question and depends a lot on how your system is setup. You may want to seek hired help, such as posting in the paid work requests area.
If you want more help here, we will need to see your entire setup, which means posting a link if possible, but since it is hidden code on the server posting a lot of code here-- perhaps more than many people will want to read through.
Based on your specific description I can't think of a better way to do this.
However, if you can explain your overall goals (generally), we may be able to suggest a better/easier approach.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks