Legacy PHP script

Chris Miller <[email protected]> Sat, 31 Jan 2015 09:23:38 -0800 (PST)
Newsgroups gmane.comp.php.drupal.support
Message-ID <[email protected]>
--===============2364634542860582290==
Content-Type: multipart/alternative; 
	boundary="----=_Part_190_357714897.1422725018171"

------=_Part_190_357714897.1422725018171
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Hi Folks, 

I have a legacy php script that displays a form, accepts input and posts back to itself, where it looks for a non-zero $_POST array to decide if it is processing or displaying. In the event of process, it updates a database and redirects to a thank-you page. Simple. 

I put this script in /site/default/files/form.php and I href'd it to a picture. When I click the picture, I get the text of form.php, not the result of processing. I have discovered that if I put the form on a different website, then I do get execution, so apparently Drupal is able to suppress php execution within its URL space. How do I bypass anti-execution restriction for this legacy script? Or, how do I incorporate this legacy script into an existing Drupal site? 

Thanks for the help, 

Chris. 

------=_Part_190_357714897.1422725018171
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: arial, helvetica, sans-serif; font-s=
ize: 10pt; color: #000000"><div>Hi Folks,<br></div><div><br></div><div>I ha=
ve a legacy php script that displays a form, accepts input and posts back t=
o itself, where it looks for a non-zero $_POST array to decide if it is pro=
cessing or displaying. In the event of process, it updates a database and r=
edirects to a thank-you page. Simple.<br></div><div><br></div><div>I put th=
is script in /site/default/files/form.php and I href'd it to a picture. Whe=
n I click the picture, I get the text of form.php, not the result of proces=
sing. I have discovered that if I put the form on a different website, then=
 I do get execution, so apparently Drupal is able to suppress php execution=
 within its URL space. How do I bypass anti-execution restriction for this =
legacy script? Or, how do I incorporate this legacy script into an existing=
 Drupal site?<br></div><div><br></div><div>Thanks for the help,</div><div> =
<br></div><div><span name=3D"x"></span><div><span style=3D"font-family: com=
ic sans ms,comic sans,sans-serif;" data-mce-style=3D"font-family: comic san=
s ms,comic sans,sans-serif;">Chris.</span><br></div></div></div></body></ht=
ml>
------=_Part_190_357714897.1422725018171--

--===============2364634542860582290==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
[ Drupal support list | http://lists.drupal.org/ ]
--===============2364634542860582290==--