Community & Support

PHP process-contact-form script - get Drupal to run it??

I'm fairly comfortable with processing my own Contact Forms using PHP - in the non-Drupal world. (I'm also a Drupal newb.) Meanwhile the standard CONTACT page didn't meet the need at all, so I composed my own page.

I set the page to PHP mode, then constructed the form starting with the standard:
echo"";

The result when "SEND" is clicked is a browser dialogue box for opening "process-contact-canela.php" - instead of just running it in the background as I'd expected. I obviously don't know how Drupal works here, as far as letting it know the PHP file exists as part of that page. (The path seems to be okay...I was able to download it, from that dialogue box.)

I'm guessing it's to do with... but then, why guess? Help!!

Comments

I would suggest looking at

I would suggest looking at the webform module.

Webform not the one...

Yes, I'd come across that myself. Two reasons why not to:

(1) A fairly customized situation, not necessarily served best by again trying to make someone else' contact module work in it;

(2) Would be very useful to learn why my approach isn't working yet, and then do it right. All kinds of other ways to use.

Anyone know why Drupal doesn't run the PHP script called by the Form action call?

** Sorry, my original post refers to how I called the processing script, but my syntax got stripped out - forgot the code tags. Trying again:

<?php
echo"<form action=sites/default/files/process-contact-canela.php  name=canela-form method=post>";
?>