Jump to content

Please help with syntax


lingo5

Recommended Posts

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?

Link to comment
Share on other sites

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.

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.