Show Bid Request
PHP Problems
Bid Request Id: 28427
|
|
|
Posted by: |
synopsis15 (3 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Sep 23, 2002 3:01:20 PM EDT
|
Bidding Closes: |
Oct 7, 2002 3:04:08 PM EDT
|
Viewed (by coders): |
97 times
|
Deadline: |
10/12/2002
TIME EXPIRED
|
|
|
|
Description:
Hey everybody.
If anyone can help me out with this I'd appreciate it. Additional information on the problem is listed under the code.
Here's the code:
----------------------------------------------------
<?php
if ($submit) {
if (($title=="") || ($url=="") || ($info=="") || ($keywords=="") || ($email=="") || ($fname=="") || ($phone=="") || ($comments=="") || ($lname=="")) {
$msg = "Error: You have left a required field empty. ";
}
}
?>
<?php if (isset($msg)) {
echo "$msg";
} else {
$toemail = "myemailaddress";
$emailtitle = "Process Immediately.";
$webmasteremail = "myemailaddress2";
$emailbody = "$title\n";
$emailbody .= "$url\n";
$emailbody .= "$info\n";
$emailbody .= "$keywords\n";
$emailbody .= "$email\n";
$emailbody .= "$fname\n";
$emailbody .= "$lname\n";
$emailbody .= "$phone\n";
$emailbody .= "$comments\n";
mail("$toemail", "From $webmasteremail : $emailtitle", $emailbody, "From: $email\r\n" ."Reply-To: $email\r\n");
echo("E-mail successfully sent. We will be processing your order shortly. Thank you! ");
}
?>
----------------------------------------------------
end code
The function of this code goes along with a form on the page www.itopsite.com/order2.php.
Users fill it out, click submit, it gets mailed to me. You missed a required field, it doesn't get sent out. However, just by calling the page up results in me recieving a completely blank form reply. Users don't even have to hit the button and the page acts like they did (neglecting the fact that required fields are empty, sending me empty results).
Any help would be greatly appreciated.
Thanks,
Joe
Deliverables: Just need some info :)
Platform:
Hosted on a Linux box w/ PHP.
Must be 100% finished and received by buyer on:
Oct 12, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$5 (USD)
|
Sep 23, 2002 3:12:59 PM EDT
|
8.6
(Superb)
|
|
|
It is very simple you need to check all fields in form to ensure that user entered something, and then check this 'something' to ensure that that is email, name etc.
Feel free to ask me.
I can fix it in 5 mins if you send me your php script.
With best regards, Nicholas
|
|
|
|
|
N/A
|
Sep 23, 2002 3:21:45 PM EDT
|
8.6
(Superb)
|
|
|
Some addition. You must check that all fields contains information (are not blank), and check $submit variable.
Here is example small example :
// checking all fields filled // and with correct info // (your ready-made functions
// Checking if form is // submitted if (isset($submit)) { // mail results } else { // show error, form is not // filled correctly } |
|
|
|
|
|