Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About SF23103

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for the suggestion! I just tried changing onkeyup to onblur and got a *similar* result. The only difference is that with onblur, if you tab or click out of the input box and then tab or click back into it, then it will update. Getting closer ?
  2. Hello, I have a form that is using Google's autocomplete for addresses. I want the address they entered to appear in a paragraph of text at the bottom of the form. It works great when the user enters text manually. Unfortunately, when the user selects an autocomplete result option, it does not update the paragraph text with the autocompleted result. I did some reading and see that is normal, and onkeyup, onchange, etc. don't work with programmatically entered text. Is there an alternative that can do what I want it to do? <input id="searchTextField" name="Premise_Address
  3. Hello, I'm trying to deal with a not-so-friendly API. Instead of XML or JSON, it outputs content in html. Here is an example: ===================================================<br/> 10:05 some text here 1789210011<br/> ===================================================<br/> I have used str_replace to change the "======" line to a horizontal line, which worked great. What I would like to do is add "Time:" before the displayed time, "Description:" before the 'some text here', and "ID Number:" before the 10 digit number. Fortunately the output is formatted cons
  4. Hello, I am getting some data from an XML source and it includes a date and time in the format: <DATE>2017-09-01T00:00:00-07:00</DATE> <TIME>00:19:43</TIME> My question is how to format that date style. Do I need to split it up somehow first in order to format it? The code I figured would work (but doesn't) was: date_format($inc->DATE, 'Y-m-d H:i:s'); Thanks for your help!
  5. Got it figured out! https://jsfiddle.net/8u1wxw01/1/
  6. What I'm doing: I have three DIVs, each of them acting as a button to swap one div with different content. [bOX_1] [bOX_2] [bOX_3] [--------BOX_4------------] For instance: If you click BOX_1, it swaps BOX_4 out with BOX_1_CONTENT & (Clicking BOX_1 again returns it to BOX_4) If you click BOX_2, it swaps BOX_4 out with BOX_2_CONTENT & (Clicking BOX_2 again returns it to BOX_4) If you click BOX_3, it swaps BOX_4 out with BOX_3_CONTENT & (Clicking BOX_3 again returns it to BOX_4) BOX_1_CONTENT, BOX_2_CONTENT, and BOX_3_CONTENT are all set to display:none; and appear a
  7. Thank you for your help, It is a little strange, I know. The client wants people to be able to reserve one of two times on one date. Instead of the obvious: having a max number of reservations for each of the two times, they want to max it out by number of the total reservations for that day. Doesn't make sense to me, but that's what they want. I guess what I should be doing, is querying the database for the dates, but ignoring the times? I also forgot to mention that the Reservations table has a column for the number of people in the party for that reservation. I like the idea
  8. I am looking for a little help on the direction to go with the logic for a MySQL query. I'm not looking for someone to program it, just point me in the right direction for the logic. 1) I have a table that contains available reservation dates. It is populated with several dates. There are two reservation times per day, 12:00 and 12:30. Dates are in date format and stored correctly, but listed below as text for example. See Table 1 below. 2) I have another table that contains reservations. This is populated when someone completes a form for the registration. Dates are stored
  9. Thank you for the direction! I've totally scrapped that horrible idea haha. I am now following PRG after the mail is sent if it's successful. I've also combined the mail code in there instead of using an include. Thank you!
  10. I may be going about this all wrong, so hopefully someone can help me out! I have an order form that processes with Braintree. If the transaction is successful, it displays a success message with the order number, and calls a different php file that sends a confirmation email. If the transaction is not successful, it displays error messages. The issue I found was that if the transaction is successful, and the user reloaded the page, it would re-send the confirmation email. This could happen repeatedly. To prevent that, I thought I would add a $order_complete variable. In the
  11. I'm using Braintree, but I must be doing something wrong with the unique transaction ID/nonce. In looking at the code, it seems to post the transaction_id after success. if($_POST['month']) { $result = Braintree_Transaction::sale(array( "amount" => $fields[total_cost] . ".00", "creditCard" => array( "number" => $_POST["number"], "cvv" => $_POST["cvv"], "expirationMonth" => $_POST["month"], "expirationYear" => $_POST["year"], "cardholderName" => $_POST['first_name'] . " " . $_POST['last_name'], ), "customer" => array( "firstName" => $_POST['first_name']
  12. That makes sense, and I can see how that would prevent refresh and back button resubmission. Does that protect against multiple submit button presses while awaiting the success notification from the payment processor? I think people are pressing submit again during the lag that is occurring while the payment is being processed before they are sent to the thank-you page.
  13. Hello, I have a multi page form. On the third and final page, the user submits payment information. Upon form submission, it sends payment information to a payment processor. If it is successful, the form submits all of the form data to my database. It includes a payment successful field in my database, but of course no credit card information is stored - that's all handled on the payment processor site. If the payment is not successful, the page loads errors to the user and the form is not submitted to my database until the payment is successful. I am starting to see an issue whe
  • 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.