NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page php problem

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-28-2004, 11:40 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Mar 2004
Location: Vancouver
Posts: 161
krazyvan05 is on a distinguished road
 



php problem


function roundit($number,$decimals) {
????: NamePros.com http://www.namepros.com/programming/32152-php-problem.html
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
krazyvan05 is offline  
Old 05-29-2004, 03:55 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
change the value of $email
adam_uk is offline  
Old 05-30-2004, 01:46 PM   #3 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
$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 01:50 PM.
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:51 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger