| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | php problem function roundit($number,$decimals) { return(sprintf("%01." . $decimals . "f", $number)); } $hugeres = SQLact("query", "SELECT * FROM freelancers_bans WHERE ip='" . $REMOTE_ADDR . "'"); $hugerows = SQLact("num_rows", $hugeres); if ($hugerows==0) { if ($new == "user") { include ("header.php"); if (!$submit) { ?> <form method="POST" action="freelancers.php"> <input type="hidden" name="new" value="user"> <big><b>New <? echo $freelancer; ?> Signup (Step 1)</b></big> <p> <strong>E-mail Address:</strong><br> <input type="text" name="email" size="25"> <br><small>(<a href="<? echo $siteurl; ?>/privacy.php">Privacy Policy</a>)</small> <p> <small>Please provide a valid e-mail address, you will have to confirm it before finishing the signup process.</small><br> <input type="submit" value="Next" name="submit"> </form> <?php } else { if ($email == "" || !eregi("@", $email) || !eregi(".", $email)) { echo 'Please enter a valid e-mail address!<br> <a href="javascript:history.go(-1);">Go Back...</a>'; } else { $email = strtolower($email); $number = $count+1; SQLact("query", "UPDATE freelancers_count SET count='" . $number . "'"); SQLact("query", "INSERT INTO freelancers_temp (email, id) VALUES ('" . $email . "', '" . $number . "')"); $subject = 'Confirm E-mail for ' . $companyname; $message = $emailheader . ' ---------- Go to the following URL to continue the signup process at ' . $companyname . ': ' . $siteurl . '/freelancers.php?confirm=' . $number . ' ---------- ' . $emailfooter; mail($email,$subject,$message,"From: $emailaddress"); echo 'A confirmation e-mail will be sent to <b>' . $email . '</b> soon, please follow the link inside to continue the signup process.'; } } } else if ($confirm && $confirm !== "") { include ("header.php"); $selectid = SQLact("query", "SELECT * FROM freelancers_temp WHERE id='" . $confirm . "'"); $idcheck = SQLact("num_rows", $selectid); if ($idcheck!==0) { $email = SQLact("result", $selectid,0,"email"); ?> my website is all based on php, and the problem is when i send a confirmation email, it is not the email that it to be sent from example instead of something@interesting.com i want admin@site.com so hopefully someone can tell me where i can change that. thank you
__________________ www.webhostforum.org www.searchengineforum.org www.webdesignerforum.org |
| |
| | #3 (permalink) |
| Senior Member | $emailaddress is the from address $email is where it is getting sent 2 but $emailaddress is not defined anywhere in the script is there any other scripts with this. There should be a line somewhere like this $emailaddress = "something@interesting.com"
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft Last edited by filth; 05-30-2004 at 12:50 PM. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |