Jump to content

contact email form not working in PHP 5.2.1


retrodog

Recommended Posts

I cut and pasted PHP code that I used for a contact form on a site that had PHP 4.3.11 installed to another site that had 5.2.1 installed and now the form no longer works.  Looking for some help determining what i need to do to make it work.  I am not seeing anything but the php code being written to the page when scripts are run?  Anyway, here are the sites with the php info...

 

http://www.christchurchlife.com/staging/test.php

 

and

 

http://www.rrmusictherapy.com/test.php

 

Thanks!

 

Link to comment
Share on other sites

If you're seeing php code, then your webserver is not treating your script as php.  You'll need to alter the configuration (if you control the server) or contact the administrator.  You may also be able to fix it by renaming your script, or moving it to a directory where php is enabled.

Link to comment
Share on other sites

are you using shorthand script like <? ?> are are you using the correct method <?php ?>

 

Php 5 is inherintly more secure because you have to do a better job of coding in order to get your scripts to function properly.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.