php script in email form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
grammatikbär
Posts: 2
Joined: Thu 3. Mar 2005, 00:06
Contact:

php script in email form

Post by grammatikbär »

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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

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.
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

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?
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

oops - double post
Post Reply