Jump to content

123guy

Members
  • Posts

    38
  • Joined

  • Last visited

123guy's Achievements

Member

Member (2/5)

0

Reputation

  1. but cURL does not allow for it to actually go to the submitted page, it can't go to a redirected page, it needs the page it specifically posted to.
  2. how secure would a predefined password field be?
  3. is there a way to submit a form strictly with php, like "fake" fields made in php, then this "fake" php form submits????
  4. you would hope no one would do this, but it has actually already happened to me
  5. ok, so I have kinda rephrased my question, maybe it will make more sense, or give a better idea as to what I am trying to acheive. so I have been trying forever to figure out a way to submit a shopping cart to a checkout page. The checkout page I can't modify, so I have to somehow submit a total, an accountid, and an accountpin to the checkout page from the shopping cart. I am trying to figure out how to do this securely. The integration guide just says to use hidden fields to hold this info....I think to myself "HELL NO"(excuse the language). I don't want to reveal my accountid and pin to a user or robot if the source of the page is viewed. I need to know if I can use php(since it is server side) or something that can hide info to add some fields after the form is submitted, then POST these to the checkout page while being directed to the checkout page(ruling out using cURL). Can anyone help me with this? thanks for any help
  6. ok, so I have found this <?php //create array of data to be posted $post_data['ssl_merchant'] = 'xxx'; $post_data['ssl_user'] = 'xxxx'; $post_data['ssl'] = 'xxx'; $post_data['ssl_cardholder'] = $_SERVER["REMOTE_ADDR"]; $post_data['ssl_transaction'] = 'ccsale'; $post_data['ssl_show'] = 'true'; $post_data['ssl'] = $_POST['amount']; $post_data['confirm'] = $_POST['confirm']; //traverse array and prepare data for posting (key1=value1) foreach ( $post_data as $key => $value) { $post_items[] = $key . '=' . $value; } //create the final string to be posted using implode() $post_string = implode ('&', $post_items); //create cURL connection $curl_connection = curl_init('xxx'); //set options curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); //set data to be posted curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); //perform our request $result = curl_exec($curl_connection); //show information regarding the request print_r(curl_getinfo($curl_connection)); echo curl_errno($curl_connection) . '-' . curl_error($curl_connection); //close the connection curl_close($curl_connection); ?> I have it filled in with correct info, but I need to know how to redirect it to the page it submitted to. I have never worked with cURL before. Any help here is appreciated!!!!!
  7. I have heard of curl, but didn't know this was the purpose, could you send me a good place to get started?
  8. I am working on a registration system that sends data to a merchant to start a checkout page. the form submitted needs to include a userid and a passkey. I don't want to just use a hidden field to store these data as they are very sensitive info. I need to know if there is a way I can have these values as a php variable on a submission page, add these values to a submitted form, then submit this "new" form to the merchant. what is the best way to go about doing this???? any help is appreciated anytime I have tried searching for something like "create form fields using PHP" it returns on how to make a form field required using php.
  9. ok, so I found this code to get me started with the displaying three months at a time. $list = array(date('n')); $list[]=date('n', mktime(0, 0, 0, $list[0]+1, 1)); $list[]=date('n', mktime(0, 0, 0, $list[0]+2, 1)); foreach ($list as $i) { echo "$i"; } Problem with this is the fact that there is not pagination. I know how to set up the months to paginate, but I do not know how to set up the year to start a new year in january. I could make it say jan 2013, march 2013...dec 2013, jan 2013...etc. I need it to move to jan 2014 at the end though. any help?
  10. hello. I am trying to figure out how to generate a list of months in a year, with a year attached, so March 2013 for example... I would like to also paginate these by three months displaying at a time, and it has no limit as to when it stops, thus the pagination of only three months. I unfortunately don't even know where to start on this, so if anyone has something that could help, or somewhere to send me, that would be awesome!
  11. Would it be the same way if I decided to use a radio button instead? Or would I not use the for each?
  12. so I am forming some checkboxes in a php loop ( i am not showing the loop, but it is in a loop). I need to be able to have multiple check box rows with multiple values. I am doing a customer tracking system. I need each check box to hold the Customer First, Last, and Memberid. How can I do this using php? I would prefer not to have to loop through an array, so if there is a way not to do that, it would be great! <input type="radio" name="CheckboxGroup" value="yes" id="CheckboxGroup1_0<?php echo $id; ?>"><input name="first" type="hidden" value="<?php echo $first; ?>"><input name="last" type="hidden" value="<?php echo $last; ?>"><input name="member" type="hidden" value="<?php echo $id; ?>">
  13. I can't. my boss has a website where he has clients put in their phone number and he believes in allowing them to put them in however they feel fit. he then exports it in a csv doc to me, and I just upload it to the database using the csv.
  14. I thought about updating the table, but there is going to constantly having phone numbers added to the database, so i would have to run that query every hour or so. is there anyway to do it when I select from the database?
×
×
  • 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.