Jump to content

FRASA

New Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About FRASA

  • Rank
    Newbie
  1. I tried this weekend to use <0 in the if/else but the outcome was not as i expected. Now I can see that my problem realy is that I did not use the correct symbol. I hope that my teachers in Math are not reading in this forum. I did not get "less than" and "more than" symbols right. Therefore thoe output did not come out correct. Less than = > More than = < My bad. Thanks for all the help.
  2. The if statement on item5 is not giving me correct output. The line occurs in the mail even if empty or "0". Therefore i have not made it yet for the other items. As a beginner i'm a bit confused. My plan was to use the if/else on the serverside. But as I understand it's not possible. It may only be possible by making a loop to check in the html form. Or?
  3. Sorry mac_gyver. I'm only a beginner in php. I do understand that my code contains a lot of "not the correct way to do it". My only question was if it is possible to do some kind of if/else on the serverside code. From all posts I may conclude that it's not possible.
  4. Hi Requinix Thanks for answering. I will try to explain it more clear and descripe better. (I am aware that mail () is not optimal and not at all with html. Is of course in the process of rewriting so it works with phpmailer.) I have an html form where I want to send data from inputs via mail. In order for the email not to be filled with lines stating that "0" items are being ordered, my thought is that I will test whether $item5 is empty or 0. If it's empty or "0" the line should not be sent in mail. If, on the other hand, there is "1" or more, the line must appear in the email
  5. Hi I'm a beginner in php and are facing a problem i cant seem to find the correct solution on. I have crated a large html form where i't sends mail with vaules from the inputs in an HTML mail. I would like to check if there is a value from the form, and if there is i need to put the value in the mail. If not, then nothing from that input will be written. So far my thoughts have been like this:(just a sniplet of my actionpage.php $item5 = $_POST['PIGM1']; if (empty($item5)) { $email_body .= ''; } if (isset($item5)) { $email_body = '<html><head><style
×
×
  • 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.