mac_gyver Posted November 5, 2015 Share Posted November 5, 2015 right before the line with if(mail(.....)){... add the following debugging code - ini_set("display_errors", "1"); error_reporting(-1); echo CNT_TXT_WARNING_EMAILSENTOK; echo CNT_TXT_WARNING_EMAILSENTERROR; exit; assuming you are doing this on a server that allows ini_set() and error_reporting() statements, this should echo the actual corresponding messages without any php errors. if you do get php errors about undefined constants/assuming you meant a string..., it means that your defined constants don't exist, either because your include code isn't working or you don't have defined constants with exactly that spelling/capitalization and without potentially some non-printing/character-encoded characters as part of the definition or usage. include "cntTxt_$IDIOMA.php3"; lol, while the actual file name you use for an included file doesn't matter, why are you still using something like .php3 at all? Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525659 Share on other sites More sharing options...
Barand Posted November 5, 2015 Share Posted November 5, 2015 Is it something simple like that page is missing the session_start() call at the beginning of the script? Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525660 Share on other sites More sharing options...
lingo5 Posted November 5, 2015 Author Share Posted November 5, 2015 (edited) @mac_gyver for you to laugh a me that's why !!!! Edited November 5, 2015 by lingo5 Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525662 Share on other sites More sharing options...
lingo5 Posted November 5, 2015 Author Share Posted November 5, 2015 @Barand no it isn't.... Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525667 Share on other sites More sharing options...
Jacques1 Posted November 5, 2015 Share Posted November 5, 2015 I know my code is not professional... but that is because I'm just a amateur programmer myself. Nobody said anything about professional code. I'm talking about code that at least won't cause damage. I do this for fun an I never upload it to any real life servers (I'm a psychologist !!!!). Your hobby is to implement multilingual contact forms, painfully debug every single problem over a course of many days and then throw everything away? OK. Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525668 Share on other sites More sharing options...
lingo5 Posted November 5, 2015 Author Share Posted November 5, 2015 @Jacques1 has my code caused damage to you ????... if so I'm sorry. Yep.... this is a hobby for me and it isn't painful at all I actually enjoy it very much. Quote Link to comment https://forums.phpfreaks.com/topic/299107-please-help-with-syntax/page/2/#findComment-1525691 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.