Jump to content

volkswest

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

volkswest's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. how do i do this as i'm new to php #1 - change the mime type to the correct one for html email #2 - include a standard html img src link to the absolute address of the image
  2. I have a php site and need to get my logo inserted into the registration email that is sent to the person registering, I have the following code that sends the email out <? require_once("conn.php"); require_once("includes.php"); if(isset($_POST[s1])) { $q1 = "insert into classmates_members set username = '$_POST[NewUsername]', password = '$_POST[p1]', CurrentName = '$_POST[CurrentName]', FormerName = '$_POST[FormerName]', SchoolName = '$_POST[schoolName]', SchoolType = '$_POST[stype]', SchoolCity = '$_POST[schoolCity]', SchoolState = '$_POST[schoolState]', country = '$_POST[country]', single_married = '$_POST[single_married]', residing = '$_POST[residing]', occupation = '$_POST[occupation]', year = '$_POST[year]', email = '$_POST', about = '$_POST[about]', RegDate = '$t' "; mysql_query($q1) or die(mysql_error()); if(mysql_error()) { $error = "<span class=RedLink>The username <span class=BlackLink>$_POST[NewUsername]</span> is already in use!<br>Select another one, please!</span>"; unset($_POST[NewUsername]); } else { $last = mysql_insert_id(); $_SESSION[MemberID] = $last; $to = $_POST; $subject = "Your login infomation"; $message = "Hello $_POST[CurrentName],\nYour login details are below:\n\nUsername: $_POST[NewUsername]\nPassword: $_POST[p1]\n\nhttp://$_SERVER[HTTP_HOST]"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\n"; $headers .= "Content-Transfer-Encoding: 8bit\n"; $headers .= "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\n"; $headers .= "X-Priority: 1\n"; $headers .= "X-MSMail-Priority: High\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\n"; mail($to, $subject, $message, $headers); header("location:prices.php"); exit(); } } //get the templates require_once("templates/HeaderTemplate.php"); require_once("templates/RegistrationTemplate.php"); require_once("templates/FooterTemplate.php"); ?>
  3. I have an auction site and want to be able to put 2 different shipping costs 1 for worldwide and 1 for the sellers country) in when the auction is submitted, I have got the following code at the moment. &nbsp;$config{'currency'}&nbsp;<INPUT NAME="SHIPCOST" VALUE=\"$shipcost\" TYPE=TEXT SIZE=10 MAXLENGTH=10><font face=arial size=2><b> Enter Shipping Cost to be paid.</b></font></TD></TR> Also does anyone know how to get paypal into my auction site, so when an item is sold an invoice gets sent automatically to the buyer and they pay for the item? thanks for your help all.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.