Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2006, 05:51 PM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem whit shoping card

hi all i have problem whit this script when buyer send this on my email i dont see article and qty
<?php

$company=$_REQUEST["company"];
$name=$_REQUEST["name"];
$email=$_REQUEST["email"];
$address=$_REQUEST["address"];
$address2=$_REQUEST["address2"];
$city=$_REQUEST["city"];
$state=$_REQUEST["state"];
$zip=$_REQUEST["zip"];
$country=$_REQUEST["country"];
$phone=$_REQUEST["phone"];
$comment=$_REQUEST["comment"];
$item=$_REQUEST["item"];
$qty=$_REQUEST["qty"];
$code_no=$_REQUEST["code_no"];
$total=$_REQUEST["total"];

// generates cart id number
$cart_id = date("ymjHis");

// required variables
require("config.php");

$message ="IP: $REMOTE_ADDR

Broj porudzbine: $cart_id

$email
$company
$name
$address
$address2
$city
$state
$zip
$country
$phone

$comment



Total $txt_currency: $total



";

mail("$email", "Re: Online porudzbina - $company_name - $cart_id", "$message", "From:$receipt");

mail("$receipt", "Online porudzbina - $company_name - $cart_id", "$message", "From:$email");

?>

<html>

<head>

<title>Order Form</title>

<style>

A:Link {color:000000;text-decoration:none;}

A:Visited {color:000000;text-decoration:none;}

A:Hover {color:000000;text-decoration:underline;}

</style>

</head>

<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#660101" VLINK="#660101" ALINK="#F70404">
<div align="center">
  <script LANGUAGE="JavaScript">

    function resetShoppingBasket() {
        index = document.cookie.indexOf("ShoppingBasket");
        document.cookie="ShoppingBasket=.";
    }

</script>
  <script language="JavaScript">

resetShoppingBasket()

top.center.frames[2].location = "middle_right.php";

</script>

  <em>Vasa porudzbina je poslata !</em> </div>
<P align="center" >

</body>
</html>






Similar Threads
Thread Thread Starter Forum Replies Last Post
My own shoping cart Lofa PHP Databases 1 June 1st, 2008 08:04 AM
ASP Shopping card problem - Urgent please hugoscp Classic ASP Professional 1 June 12th, 2007 06:42 PM
Card shuffling problem! the Real Newman Java Basics 2 January 30th, 2006 12:57 PM
problem whit session SIV General .NET 0 January 16th, 2005 08:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.