hi all,
have a big problem. first off all working since some days with phpwcms and i must say it really works great!!
but i have one problem. for one email form i need to post the data to a php script form.php instead of mailing it to an email-address.
how do i post the form data to an php script. can i change submit somewhere?
thanxs for your help
uli
php script in email form
-
- Posts: 2
- Joined: Thu 3. Mar 2005, 00:06
- Contact:
To my knowledge, there is no built-in functionality to write data from a form to a file or to a db. I know that this is possible with another cms at http://www.contentor.net. You may want to download it and have a look at formproc.php - it might help you get started.
Ben is right from a general persepctive.....
However it is possible to create a custom form element in a given article (article summary in my case) that simply posts data to a custom php script...that would handle all the details....selcect|insert or select|insert|redirect. You would just declare the form element inside content itself:
summary:
<FORM name=submit action=insert_data.php method=post>etc....<INPUT type=submit value=Submit name=Submit></FORM>
Works pretty well.....
Hope this helps,
John
However it is possible to create a custom form element in a given article (article summary in my case) that simply posts data to a custom php script...that would handle all the details....selcect|insert or select|insert|redirect. You would just declare the form element inside content itself:
summary:
<FORM name=submit action=insert_data.php method=post>etc....<INPUT type=submit value=Submit name=Submit></FORM>
Works pretty well.....
Hope this helps,
John
I have a suspicion that Oliver is working on a way to write form data to the db, and not just e-mail it. If you look in the e-mail form content part of 1.2.1, you'll see a target dropdown box which only has email as an option right now. Wouldn't it be great if 2 new options were there - db and db / e-mail? Oliver, are you willing to spill any secrets on this?