This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
[closed] PHP ? for the action modifier
Started 17 years ago by Narthex | 2 posts |
-
After I create the form and look at the source code, I see <form ... action="/machform/view.php> opening the form element, but when I look in the address bar, I see ".../view.php?=2".
1. Is the form posting to itself?
2. How is it processing the fields to send in an email?
3. I want to integrate the new form into a web site, but I can't find php code that process the form. Where is that located? I was able the locate the linked javascript and the css files.Posted 17 years ago # -
1) Yes, the form is posting to itself.
3) If you look at view.php file, you'll see that the main function for processing inputs is this line:$submit_result = process_form($input_array);
So, if you would like to modify it, you'll need to hack process_form() function which is defined in includes/post-functions.php.
2) Email sending function is being called under process_form(). Search around line 902 and you'll find this code:
send_notification($form_id,$table_data);
That function is defined in includes/helper-functions.php
Hope that helps.
MachForm Founder
Posted 17 years ago #
Topic Closed
This topic has been closed to new replies.