[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 05-28-2004, 10:40 PM   #1 (permalink)
NamePros Member
 
Join Date: Mar 2004
Location: Vancouver
Posts: 167
96.05 NP$ (Donate)

krazyvan05 is on a distinguished road


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
krazyvan05 is offline  
Old 05-29-2004, 02:55 AM   #2 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

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, 12:46 PM   #3 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

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 12:50 PM.
Peter is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:28 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85