Jump to content

vozzek

Members
  • Posts

    130
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.thefrogandtheprincess.com

Profile Information

  • Gender
    Not Telling

vozzek's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Hi all, I'd like to create a clickable image scroller, like the one at the top of this site: http://www.cyoa.com Best way to do this? Php & Javascript? Does anyone know of any existing widgets I could use to cut/paste into my site and then modify the code, or is there a tutorial someone can point me in the direction of so I can code it from scratch? As always, thanks in advance.
  2. Hmmm... interesting. They have a few gateways, and the one you linked is for the API. I am using their "connect 2.0" gateway. The integration guide for that one is here: http://www.firstdata.com/downloads/marketing-merchant/fdgg-connect-2.0-integration-guide.pdf No mention of xml there really. If the two different support reps I spoke to today both assumed I was using the API - when I specifically mentioned connect 2.0 - I'm gonna kick someone's ass...
  3. Okay, here's the gateway url: <FORM action="https://connect.firstdataglobalgateway.com/IPGConnect/gateway/processing" method="post" name="ccform" id="ccform" onSubmit="return validateCC();" style="margin:0;"> Within the form are a bunch of inputs. Some examples: <select name="paymentMethod" id="paymentMethod"> <option value="" selected>Please Select</option> <option value="A">American Express</option> <option value="V">Visa</option> <option value="M">Master Card</option> <option value="D">Discover</option> </select> <select name="expmonth" id="expmonth"> <option value="" selected>--Month--</option> <option value="1">January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> So on and so forth. There are also a few hidden inputs for customer information, billing info, order comments, etc... Then the form ends with </form> As far as I've always known, I'm simply posting a bunch of data to the gateway url. Which is why I was confused when the guy said: "I need to see the xml request (envelope) being sent to us" "What?" I asked him. "Everything you send is wrapped in an xml envelope. You have to print it (get the server to print it?) and email it to us, so we can troubleshoot whether it's sending anything bad."
  4. Sorry, I'm not sure I understand. How do I build $xml_string? I've never done that. It's null right now, unless I set it?
  5. Hi everyone, I've been running a self-written php shopping cart for the last 8 years, with lots of success. Recently however, the credit card processor (Linkpoint) I use upgraded their gateway, and now I have a problem. Basically, the last page of my checkout does a _POST to a specific url for their gateway. I send through a bunch of <input> variables, some of them hidden, but all of them check out okay. I have combed over their specs, made sure I'm not sending any bad characters, made sure I've got the right format for the fields they want, etc... Right now the transaction is successful, the customer's card is charged, but Linkpoint's system is returning an error message: We are unable to process your request due to invalid data. Long story short, their support staff has asked me to "send them the xml string" via email. I have no idea how to do this (even after spending a few hours online trying to figure it out). Is there a simple way to generate the xml string that's being passed during the _POST? Some kind of php code I can incorporate into my final checkout page, run a test transaction, and maybe write the string out somewhere so I can get it to them? Any help you guys could give me would be greatly appreciated. Thanks in advance! Danny
  6. Ok, this was a php issue. The php.ini file (of my new version) had the register_globals value set to OFF. It needed to be ON, based on my sloppy programming (non-use of $_POST). For now I was able to turn it on, and all my queries work on all pages. Sorry for this being in the wrong spot, but I honestly thought it was a MySQL issue. Thanks for the help!
  7. Okay, I think I've pinpointed the problem. In the past, I've plucked variables from the previous page without using $_GET. For example, if ($RecordID) { $sql = "SELECT * FROM inventory WHERE id = $RecordID"; $result = mysql_query($sql) or die(mysql_error()); Now, it only works if I first do this: $RecordID = $_GET["RecordID"]; if ($RecordID) { $sql = "SELECT * FROM inventory WHERE id = $RecordID"; $result = mysql_query($sql) or die(mysql_error()); The version of MySQL I'm on now is 5.5.32 The version of MySQL on the old server was 5.5.30-29.3 So perhaps the newer version requires me to $_GET all the variables I pass (with parameter passing), or $_POST all the variables I receive from a form submit? If so I'm going to need to change a bunch of code. I know my original work (plucking the variables seemingly from thin air) is bad programming. But when I wrote the system years ago I had much less knowledge.
  8. Hi all, Today I switched servers. I got a Hostgator Basic Dedicated server, and their migration team moved everything over for my website - including the MySQL database - from their congested shared servers to my new one. I went to my registrar and changed the DNS entries to point to the new private nameservers. Accessed the CPanel, saw the files, was able to modify them and see the changes at the url level. All looked good. Now, here's what's weird: SOME of the pages of my site run the MySQL queries just fine. Some do not. For example, I have a page called "kids rugs" that shows a few hundred rugs pulled straight from my database. Each shows the photo, the name, and the price. But when you click on an individual rug, and it takes you to the detail page? NO data of any kind is showed (no photo, no description, no price, etc...) The second page is running the same type of query as the first. It's a SELECT * FROM tbl_name WHERE category = 'rugs'. The table is the same, the database is the same, and the connection script is the same. But one page shows results from the inquiry where the other does not. There are lots of other pages on my site that refuse to run MySQL inquires as well. These were all inquiries that worked flawlessly on the old shared server, but don't work on the new dedicated one (both servers are Linux). My question is this: Do you think this has anything to do with DNS, non-propagation, etc? I'm tempted to say "oh, this will resolve itself in 24-48 hours", but then again, it doesn't make much sense that a MySQL query would connect and work correctly on one page, and not show any results on others. Any ideas? Thanks in advance for the help!
  9. Hi all! I have a programming question that's been plaguing us for a while now, and was hoping there was a php solution to it. Our retail site gets a lot of international customers who enter special accented characters in their names and addresses. When this happens, any of these characters going through my payment gateway end up throwing an error, and the customer has to re-enter their name/address without these characters if they want the sale to go through successfully. Needless to say, I'm losing a lot of customers this way. I wrote some php code to strip out these characters, but the problem is that once they get passed from one page to the other? They're already messed up with all kinds of special character crap as html/UTF-8 whatever the hell tries to convert them. My php code that would strip these characters out no longer applies, because the variables now contain all kinds of nightmarish control characters (like the reverse diamond with the upside down question mark in it). Here's my php code so you can see what I'm talking about: <?php $search = explode(",","Â,Ã,Ä,À,Á,Å,Æ,Œ,Ç,È,É,Ê,Ë,Ì,Í,Î,Ï,Ð,Ñ,Ò,Ó,Ô,Õ,Ö,Ø,Ù,Ú,Û,Ü,Ý,Þ,ß,à,á,â,ã,ä,å,æ,ç,œ,è,é,ê,ë,ì,í,î,ï,ð,ñ,ò,ó,ô,õ,ö,ø,ù,ú,û,ü,ý,þ,ÿ"); $replace = explode(",","A,A,A,A,A,A,AE,OE,C,E,E,E,E,I,I,I,I,D,N,O,O,O,O,O,O,U,U,U,U,Y,P,B,a,a,a,a,a,a,ae,c,oe,e,e,e,e,i,i,i,i,o,n,o,o,o,o,o,o,u,u,u,u,y,b,y"); $last_name = str_replace($search, $replace, $last_name); $address_1 = str_replace($search, $replace, $address_1); $address_2 = str_replace($search, $replace, $address_2); $city = str_replace($search, $replace, $city); $state = str_replace($search, $replace, $state); $zip_code = str_replace($search, $replace, $zip_code); $country = str_replace($search, $replace, $country); $bill_first_name = str_replace($search, $replace, $bill_first_name); $bill_last_name = str_replace($search, $replace, $bill_last_name); $bill_address_1 = str_replace($search, $replace, $bill_address_1); $bill_address_2 = str_replace($search, $replace, $bill_address_2); $bill_city = str_replace($search, $replace, $bill_city); $bill_state = str_replace($search, $replace, $bill_state); $bill_zip_code = str_replace($search, $replace, $bill_zip_code); $bill_country = str_replace($search, $replace, $bill_country); ?> This works great, as long as I already have the accented characters within the variables. But since these variables are being passed (via inputs from a <form>) from the previous page, the accented characters have already been changed into wacky control characters. What I think I need is some javascript. That way I can change the fields AS the customers enter the information. Maybe I need to do the search/replace upon form submission, BEFORE we go through to the verification page (where my php code resides)? I found something to do with javascript replacment here, at this url: http://www.w3schools.com/jsref/jsref_replace.asp Is this what I need? How would you strip these characters from your fields when the customer is entering their name, address,province and country? My javascript variables look like: frm.first_name.value, frm.last_name.value, etc... Thanks in advance for the help! I'm really at a loss as to how to fix this.
  10. Hi all, Okay, I have a domain, let's call it domain1.com with another Add-on domain linked to a folder within the main url (let's call it domain2.com). If I look at domain2 in google's webmaster tools, everything looks fine. If I look at domain1 in google's websmaster tools, it sees the entire domain2 folder as part of domain1. Therefore, it sees all kinds of "broken" links. My question is this: if I disallow that folder in the robots.txt file for domain1, will it disable google (and other web spiders) from crawling domain2 entirely? For example, if my robots.txt file looks like this: User-agent: * Disallow: /style.css Disallow: /domain2.com will it create problems with google being able to see my add-on domain? Thanks in advance for the help.
  11. Hmmm... Okay, I've modified the code slightly (I need to change variables, not the URL) and here's what I have: <?php $search = explode(",","ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,e,i,ø,u"); $replace = explode(",","c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,e,i,o,u"); $first_name = str_replace($search, $replace, $first_name); $last_name = str_replace($search, $replace, $last_name); $address_1 = str_replace($search, $replace, $address_1); $address_2 = str_replace($search, $replace, $address_2); $city = str_replace($search, $replace, $city); ?> Admittedly I'm inexperienced with the whole explode thing, but this isn't working... the variables still contain the internation characters. How come?
  12. Yikes! Jay, that was astonishingly easy and helpful. Thanks!
  13. Anyone have an idea? Or a list of international symbols so I can do a string replace?
  14. Hi all, I've got a self-made php-based shopping cart that's working great, but I'm recently having trouble because I'm now allowing customers to enter international names and addresses. My database allows the entry of special international characters (example: í, è, ó, â, é, ñ, etc...), but when I try to pass these names and addresses through my payment gateway, my merchant provider kicks back an error. I'd like to strip these characters and replace them with standard letters before sending the data through the gateway. Are there any existing php routines that do this? What's the best way you guys would recommend me handling the issue? As always, thanks in advance for the help!
  15. From what I understand, Zend needs to be installed on my server, right? How can I tell if Hostgator's got it running?
×
×
  • 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.