retrodog Posted March 5, 2007 Share Posted March 5, 2007 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 https://forums.phpfreaks.com/topic/41194-contact-email-form-not-working-in-php-521/ Share on other sites More sharing options...
btherl Posted March 5, 2007 Share Posted March 5, 2007 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 https://forums.phpfreaks.com/topic/41194-contact-email-form-not-working-in-php-521/#findComment-199573 Share on other sites More sharing options...
rcorlew Posted March 5, 2007 Share Posted March 5, 2007 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 https://forums.phpfreaks.com/topic/41194-contact-email-form-not-working-in-php-521/#findComment-199646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.