Jump to content


  • Posts

  • Joined

  • Last visited

About lingo5

  • Birthday 04/21/1992

Profile Information

  • Gender
  • Location
  • Age

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

lingo5's Achievements

Regular Member

Regular Member (3/5)



  1. @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.
  2. @mac_gyver for you to laugh a me that's why !!!!
  3. $idioma=strtolower($idioma); if ($idioma=="esp" || $idioma=="eng" || $idioma=="ger"){ $_SESSION['session_idioma'] = $idioma; } if (!$_SESSION['session_idioma']){ $_SESSION['session_idioma'] = "esp"; } // define (IDIOMA,$_SESSION['session_idioma']); $IDIOMA = $_SESSION['session_idioma']; include "cntTxt_$IDIOMA.php3"; define ('CNT_TXT_WARNING_EMAILSENTOK',"email sent correctly"); define ('CNT_TXT_WARNING_EMAILSENTERROR',"there was an error sending your email"); @Barand, I define these constants in a txt file called cntTXT_eng for English language like so: Then I have created a php file called constants like this: I then include the constans php file at the top of the page. It works site wide except for the contact form.
  4. Hi @Jacques1, I know my code is not professional... but that is because I'm just a amateur programmer myself. I do this for fun an I never upload it to any real life servers (I'm a psychologist !!!!). I know I have a lot to learn and that's why I come here !!! Sorry guys if I'm wasting your time.
  5. <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $tel = $_POST['tel']; $province = $_POST['province']; $city = $_POST['city']; $query = $_POST['message']; $email_from = $name.'<'.$email.'>'; $to="info@email.com"; $subject="Alguien quiere un presupuesto"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: ".$email_from."\r\n"; $message=" Nombre: $name <br> Tel.: $tel <br> Email: $email <br> Provincia: $province <br> Ciudad: $city <br> Descripcion: $query "; if(mail($to,$subject,$message,$headers)) header("Location:../presupuesto.php?msg=" . CNT_TXT_WARNING_EMAILSENTOK); else header("Location:../presupuesto.php?msg=" . CNT_TXT_WARNING_EMAILSENTERROR); } ?> @mac_gyver here's the code with the changes suggested in post 8. Still no luck.
  6. @shan yes, that's what I'm trying to do
  7. Barand yes, I have it defined in a txt file. All other message in that file are working correctly.
  8. <div class="row-fluid"> <div class="span8" id="divMain2"> <h3 style="color:#FF6633;"><?php echo $_GET[msg];?></h3> <hr> <!--Start Contact form --> <form name="enq" method="post" action="email/" onsubmit="return validation();"> <fieldset> <input type="text" name="name" id="name" value="Nombre" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_NOMBRE?> /> <input type="text" name="tel" id="tel" value="Tel" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_TELEFONO?> /> <input type="text" name="email" id="email" value="Email" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_EMAIL?> /> <input type="text" name="province" id="province" value="Provincia" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_PROVINCIA?> /> <input type="text" name="city" id="city" value="Ciudad" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_CIUDAD?> /> <textarea rows="11" name="message" id="message" class="input-block-level" placeholder=<?=CNT_TXT_PRESUPUESTO_DESCRIPCION?>></textarea> <div class="actions"> <input type="submit" value=<?=CNT_TXT_BOTONES_ENVIAR?> name="submit" id="submitButton" class="btn btn-info pull-right" title="" /> </div> </fieldset> </form> <!--End Contact form --> </div> please see my answer to shan. In addition to that here's the code for the presupuesto.php page that shows my form and right at the top the php code that shoud print the sent ok message.
  9. Hi @shan, thanks but all I get printed on presupuesto.php is this CNT_TXT_WARMING_EMAILSENTOK instead of the actual success message. The filepath is correct.
  10. nope.... thanks but not displaying the message correctly.
  11. sorry, still doing the same. ?¿?¿??
  12. CNT_TXT_WARNING_EMAILSENTOK thanks but that doesn't seem to work, all I get is this printed when the form has ben submitted
  13. Hi Shan, please see my answer. Thanks
  14. Hi Ch0cu3r, they're strings of text to show the message in different languages.
  • 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.