Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Php problem

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

krazyvan05

Established Member
Impact
1
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 [email protected] i want [email protected] so hopefully someone can tell me where i can change that. thank you
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
change the value of $email
 
0
Close
$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 = "[email protected]"
 
Last edited:
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back