Jump to content

Mogato

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Mogato's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. OK... could it be because I run the site on a Widows-server? should I switch to UNIX instead?
  2. Hi, I have a recently made a webbshop wich uses a session that stores all the products in an array (works fine), but then when I try to call the session/array it slows down the site... and it is the "session_start();" who does it. Below you find the code for my "shopping cart" which I include on all my sites and therefore make my whole site runs slowly anyone got any ideas of how to solve this problem? any easy way to get by this? //------------------------------------ // SHOPPING CART //------------------------------------ session_start(); session_register("products"); //Variables $products= $_SESSION[products]; //uppdaterar variabeln med nya sessionen $noitems = 0; if (isset($products)){ foreach($products as $k => $v){ $noitems += $products[$k]['noitems']; } } //------------------------------------
  3. I managed to POST the variables finally... however I encountered another problem so I will try PayPal instead... this is the code to POST variables without using forms: <?php // // A very simple PHP example that sends a HTTP POST to a remote site // $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.mysite.com/tester.phtml"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2&postvar3=value3"); curl_exec ($ch); curl_close ($ch); ?>
  4. Thanks for all the help... really appreciate it I think I´m gonna start looking for another credit card processing company.... anyone has any recommendations? Paypal? I want something thats not to expensive since I recently launched the shop and therefore doesnt have too many orders yet...
  5. I think that akitchin understands my problem... i have got one page called "checkout.php" on this page you can chose payment method either invoice or credit card (payson) - when the user has made his choice and press submit "order.php" is called and what it does is that it collects all the data such as name, address, totalprice etc. it also checks the payment method and if it is credit card (payson) it will send all the data to payson... my problem is that payson only can receive it as POST so if I only had one payment method i would just have one form that sent all the data directly to Payson however in this case I must first check the payment method and then send it forward with the right data. It is a bit complicated to describe, but I hope you understand? thanks a buch for all comments...
  6. Sorry if I was a bit unclear... i need to send it using POST without a form... I have a webshop where the user can chose different payment methods and if the for an example choose credit card they will come to a page thats sends the data to payson... however payson needs to receive the data with POST instead of GET (if they could receive it with get I could send them one long URL with query strings) but it this case I don´t know how to get the page to collect all the variables and then send them with POST
  7. I want to send variables with POST instead of GET, but cannot seem to find how to do it :'( anyone who could help me?
×
×
  • 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.