Advertisement

12.10.2007 at 12:08PM PST, ID: 23013924
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

3.6

Get values using "GET" but not "POST"

Asked by RosieisSweet in Hypertext Markup Language (HTML), PHP Scripting Language, PHP and Databases

Tags:

Hi,
I am new to PHP and am having a problem with a form to email information collected from an html form. When I use the "GET" parameter, the information gets to the intended email. When I use "POST" the email returns with empty fields. Can someone describe the difference between "GET" and "POST" that would cause this? My client does not want a database on his site. Just information emailed to him from these forms. Also, I am concerned with security using "GET" where the information is shown in the URL.

Here is the code I am using with "GET" and it is working but I think "POST" is what I will need for securitiy reasons. Can you use "POST" without a database?

<?php
// variables
$customer_name = $_GET['customer_name'];
$from = $_GET['customer_email'];
$customer_phone = $_GET['customer_phone'];
$customer_comment = $_GET['customer_comment'];

//to and subject
$to = "ozzie@bclean.com";
$subject = "Customer Inquiry";

//message body
$message = '
         <html>
                  <head>
                  </head>
                        <body>
                              <table width="90%" border="0" cellspacing="0" cellpadding="3">
                      <tr>
                        <td width="15%" align="left" valign="top">Name:</td>
                        <td align="left" valign="top"><b>'.$customer_name.'</b></td>
                      </tr>
                      <tr>
                        <td width="15%" align="left" valign="top">Email Address:</td>
                        <td align="left" valign="top"><b>'.$from.'</b></td>
                      </tr>
                      <tr>
                        <td width="15%" align="left" valign="top">Phone Number:</td>
                        <td align="left" valign="top"><b>'.$customer_phone.'</b><br></td>
                      </tr>
                      <tr>
                        <td colspan="2"><h2>How may we be of assistance?</h2></td>
                      </tr>
                      <tr>
                        <td colspan="2"><p>'.$customer_comment.'</p></td>
                      </tr>
                    </table>
                        </body>
            </html>
';

//make sure text wraps if it is to long
$message = wordwrap($message, 70);

//set html content type
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' .$from. "\r\n";

mail($to, $subject, $message, $headers);
?>
Start Free Trial
[+][-]12.10.2007 at 12:12PM PST, ID: 20444636

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.10.2007 at 12:13PM PST, ID: 20444638

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:13PM PST, ID: 20444642

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:14PM PST, ID: 20444648

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:15PM PST, ID: 20444658

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:23PM PST, ID: 20444728

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:24PM PST, ID: 20444743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:27PM PST, ID: 20444768

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:28PM PST, ID: 20444787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:29PM PST, ID: 20444788

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:33PM PST, ID: 20444833

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:38PM PST, ID: 20444872

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:49PM PST, ID: 20444979

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 12:58PM PST, ID: 20445067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 01:00PM PST, ID: 20445090

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 01:07PM PST, ID: 20445156

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 01:31PM PST, ID: 20445370

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 02:02AM PST, ID: 20448224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 02:13AM PST, ID: 20448267

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 11:26AM PST, ID: 20451847

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 12:31PM PST, ID: 20452448

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.11.2007 at 11:30PM PST, ID: 20455626

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 03:30AM PST, ID: 20456345

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 07:10AM PST, ID: 20457457

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 07:27AM PST, ID: 20457557

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 07:28AM PST, ID: 20457563

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 07:35AM PST, ID: 20457595

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), PHP Scripting Language, PHP and Databases
Tags: php
Sign Up Now!
Solution Provided By: HeroGuran
Participating Experts: 5
Solution Grade: B
 
 
[+][-]12.13.2007 at 07:18AM PST, ID: 20464776

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.14.2007 at 12:13PM PST, ID: 20474115

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628