Jump to content

lingo5

Members
  • Content Count

    426
  • Joined

  • Last visited

Community Reputation

3 Neutral

About lingo5

  • Rank
    Advanced Member
  • Birthday 04/21/1992

Profile Information

  • Gender
    Female
  • Location
    Spain
  • Age
    20
  1. lingo5

    Please help with syntax

    @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. lingo5

    Please help with syntax

    @Barand no it isn't....
  3. lingo5

    Please help with syntax

    @mac_gyver for you to laugh a me that's why !!!!
  4. lingo5

    Please help with syntax

    $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.
  5. lingo5

    Please help with syntax

    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.
  6. lingo5

    Please help with syntax

    <?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.
  7. lingo5

    Please help with syntax

    @shan yes, that's what I'm trying to do
  8. lingo5

    Please help with syntax

    Barand yes, I have it defined in a txt file. All other message in that file are working correctly.
  9. lingo5

    Please help with syntax

    <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.
  10. lingo5

    Please help with syntax

    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.
  11. lingo5

    Please help with syntax

    nope.... thanks but not displaying the message correctly.
  12. lingo5

    Please help with syntax

    sorry, still doing the same. ?¿?¿??
  13. lingo5

    Please help with syntax

    CNT_TXT_WARNING_EMAILSENTOK thanks but that doesn't seem to work, all I get is this printed when the form has ben submitted
  14. lingo5

    Please help with syntax

    Hi Shan, please see my answer. Thanks
  15. lingo5

    Please help with syntax

    Hi Ch0cu3r, they're strings of text to show the message in different languages.
×

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.