Jump to content

Evrim

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Evrim's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello everybody I wonder if someone has any suggestions for me? Thanks ??? :'(
  2. Thanks for taking the time to reply. I commented the echo statemetns and still have the same problem. Please help!
  3. Hello I have a php page that checks the values of a html form. If some elements of the form are missing or have incorrect format, it will display messages to the user. 1. My checkform.php page contains a code like: $missing1 = "The following fields are missing: "; if ($key=='gender' && empty($val)) { $missing1 .= " Gender; " ; echo $missing1;} if ($key=='address' && empty($val)) { $missing1 .= "Home address; " ; echo $missing1; } // More checks of the same type $togourl ="../errors.php?missing1=$missing1"; header("Location: $togourl"); 2. In my errors.php I have: <tr> <td> <?php echo $_GET['missing1']; ?> </td> </tr> 1. The problem is that I only see one word in my errors.php, which is "The". When I remove the statement header("Location: $togourl") from my code, I see the missing1 var is correct (by checking echo in the code), but when displaying in second page I have a problem. Could you help me? Everything else (html) shows fine in the table of the second page. 2. What method you suggest so I store the missing fields in array and pass it on to errors.php and show it in several lines threre? Many many thanks Evrim
  4. Hello I have a form on html page which posts its results to a PHP page. PHP page gets the values of form elements and redirects to the right page. So at the end of PHP page I have: if ($v==1) $resulturl ='../thanks.htm'; else $resulturl ='../incomplete.htm'; $headers = "From: $from ". "\r\n"; header("Location: $resulturl"); My question is, how can I pass the variable $v to my page incomplete.htm? Thank you for your help ??? EDITED BY akitchin: added code tags. use them in all future posts please.
  5. Hi I am building php pages on winxp with IIS. 1. I have downloaded and configured PHP and I am able to view my pages in IIS. 2. One of my php pages uses a mail function to send form info to an email, I have written a code for that 3. In my PHP.ini file, I have: SMTP = localhost smtp_port = 25 sendmail_from = me@example.com 4. In my SMTP settings I have added 127.0.0.1 to both connection and relay under Access tab of SMTP properties. 5. SMTP is running Now, I don't know how to test my mail function to see if I am able to send mail. Can you please help me? Very very confused PHP beginner Thanks
×
×
  • 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.