Jump to content

karlc

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

karlc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am editing a form in PHP that I need to use to send out information collected in a web form, the form I am adapting would send information to a database and email out a message to view the information submitted, what I need to do is collect this information and have it sent out in an email, the email part is below however when I added fields from the form like $submitterSurnamefield = "Surname: $submitterSurnamefield"; I it fails to submit. I am new to PHP so any help on this would be great $email_from = "me<me@me.com>"; $to = "me@me.com"; $header = "From: $email_from\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: text/html;"; $subject = "mailtest- Request for information"; $submitterSurnamefield = "Surname: $submitterSurnamefield"; $body = "Hi.<br><br>A website user has submitted a request for information.<br><br>Please see the information below<br><br> Thanks."; mail($to, $subject, $body, $submitterSurnamefield, $header);
  2. Hi Andy Thank you very much for your help its working great. This was my first post in this forum in fact to any PHP forum I look forward to contributing in the near future as soon as I get my head around PHP a little more :) Would you mind if I posted the results of this in the webthang forum as I know some other ASP coders are keen on this Again much appreciated
  3. If you find the time that would be great  I only moved over to PHP yesterday and it looks like I have a big learning curve that’s for sure Your kick-start is much appreciated Thanks again
  4. Hi AndyB You have solved my problem the languages are changing...thank you :) However I have one small error On loading the page I get this error Undefined index: lang online 3 and when I click to change a language and it changes it ok I get this error Undefined variable: _SESSION on line 4 1.<?php 2.$lang = $_GET['lang']; 3.if ($lang) { 4. if ($_SESSION['Language']!=$lang) { 5. $_SESSION['Language'] = $lang; 6. } 7.} Any further help would be great
  5. Thanks for the advice This tip got rid of my error Although I still cant change the language I have a feeling its got to do with this part The ASP <% 'Set up language selection If Request.QueryString("lang")="Spanish" Then Session("Language")="Spanish" ElseIf Request.QueryString("lang")="French" Then Session("Language")="French" ElseIf Request.QueryString("lang")="English" Then Session("Language")="English" End If %> I tried the following PHP but no joy :( anyone know what I am doing wrong? <% If $_SERVER["QUERY_STRING"]("lang")="Spanish" Then $_SESSION["Language"]="Spanish" Else $_SERVER["QUERY_STRING"]("lang")="French" Then $_SESSION["Language"]="French" Else $_SERVER["QUERY_STRING"]("lang")="English" Then $_SESSION["Language"]="English" End If %>
  6. Hi All I am looking around for some good tutorials on setting up a multilingual website using MySql and PHP in DW. Having just moved over to PHP from ASP I was also wondering if I could adapt this ASP VB tutorial to suit my needs. [a href=\"http://www.webthang.co.uk/tuts/tuts_dmx/rob11/rob11_1.asp\" target=\"_blank\"]http://www.webthang.co.uk/tuts/tuts_dmx/rob11/rob11_1.asp[/a] Any help would be much appreciated
×
×
  • 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.