Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8893013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:08:43+00:00 2026-06-14T23:08:43+00:00

/*user is filing up form values that includes name , phone , product quantity…etc

  • 0
/*user is filing up form values that includes name , phone , product quantity...etc   */<BR/>
/*After clicking button  */
$mailto = randomuseremail@xxx.com
/* *//
$value1=$_GET['value1'];
$value2=$_GET['value2'];
$value3=$_GET['value3'];
.
.
.
$value20=$_GET['value20'];

$message = <<< EOD
< br> value 1 is:  $value1;
< br> value 2 is: $value2;
< br> value 3 is:  $value3;
.
.
.
< br> value 20 is - $value20;
... EOD ;
$success = mail($mailto, $message , $body, $headers);

user receive this email

You orderd: 
value 1 is:  1
value 2 is:  0
value 3 is:  0
...
value 20 is: 0

Instead of displaying this how to filter/not display 0 or “” values whitin EOD ( or there is better method )
This is desired email output:

You orderd:
value 1 is:  1 /*or any other non zero | "" value   */
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:08:44+00:00Added an answer on June 14, 2026 at 11:08 pm
    $message = '';
    for ($i = 1; $i <= 20; $i++) {
      if ($_GET['value'.$i] != 0) {
        $message .= "<br> value $i is: " . $_GET['value'.$i]
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two sections in a form, and I have a button that toggles
I have a form containing a list of input fields that the user populates
Basically I am trying to make a simple form that allows the user to
User Story: Action for Facebook that has open graph object. For this I need
User inserts a string in a html form input on browser. This string is
User first_name: Johnny age: 15 Car name: Mazda Car name: BMW I would like
User profile. I have some attributes that have only 2 or 3 options. For
User Defined Function (UDFs) are functions that one can program and can be dynamically
I want to design a webform that user should fill some fields. The value
I have a system that allows a person to select a form type that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.