Jump to content

chatyak

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chatyak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, Is this possible with PHP? I am trying to open an additional window (pop up if you want to think of it that way) when a form is submitted - along with the regular thank you/results page. So in essence, after clicking "submit" both the thank you page show plus a new smaller window on top.
  2. I am waiting on verification from the tech support team - I can't verify anything on my end as of yet - I will let you both know though - thank you.
  3. So my code should be this?: <?php $key = '3adfa886-415f-4e80-8b53-bddedf59c0ec'; $clickID = 'some value'; $ip = '123.123.123.123'; //Only an example $result = http_get("http://bidsystem.adknowledge.com/conversion_sts.php?key={$key}&click_id={$clickID}&ip={$ip}"); ?>
  4. Thank you for the reply - I shall fix the code and see if that works.
  5. I need to be able to send data via an API (to another server), every time a conversion/sale is made. Here is an example: "Your Server to Server Key is 3adfa886-415f-4e80-8b53-bddedf59c0ec To use the Server to Server Conversion API, make one HTTP GET request for every conversion. Adknowledge prefers to receive conversion data as conversions are processed. This allows Adknowledge's conversion processing and discounting systems to make decisions and store results in real time as soon as data is received. The URL for the API is: http://bidsystem.adknowledge.com/conversion_sts.php?key=3adfa886-415f-4e80-8b53-bddedf59c0ec&click_id=clickid&ip=ip" Now on my tracking program's conversion page, I added the following PHP code: <?php $adknowledge = $_GET['http://bidsystem.adknowledge.com/conversion_sts.php?key=3adfa886-415f-4e80-8b53-bddedf59c0ec&click_id=clickid&ip=ip']; ?> Will this successfully send the data through and count as a conversion? I am so lost it's not even funny.
  6. Hello, I have figured some more out and am quite happy with the results. I have a question that may solve this problem. What code would I use to specify a certain range of answers? For example, I have the following code: <?php if ($answer=="Alabama, Before 1995, Under $20K, Leased, Rent, Yes, Yes, Under $30K, No, $0 - $5K") echo "You should consider getting $100000K in coverage"; elseif ($answer=="Alabama, Before 1995, Under $20K, Leased, Rent, Yes, No, Under $30K, No, $0 - $5K") echo "You should consider getting $2000000 in coverage"; else echo "Nothing here"; ?> But what if I want to do this? Bold highlighted is the change. <?php if ($answer=="Alabama, From Before 1995 To 2005 (a range of potential selections that user may have chosen), Under $20K, Leased, Rent, Yes, Yes, Under $30K, No, $0 - $5K") echo "You should consider getting $100000K in coverage"; elseif ($answer=="Alabama, Before 1995, Under $20K, Leased, Rent, Yes, No, Under $30K, No, $0 - $5K") echo "You should consider getting $2000000 in coverage"; else echo "Nothing here"; ?> What exactly is the code to specify a range of options?
  7. Edit: Essentially what I am trying to do is to copy this calculator in a similar way, using php. http://autos.yahoo.com/car-insurance/coverage-calculator-tool (have to click get started then enter zip)
  8. Hello, For all purposes, I am a complete beginner. I just know the basics of passing form data through to an email, and displaying the text of a variable on the next page via ECHO, POST, etc.. My situation is that I do not know what sort of code to use to accomplish the job of what I want done. I have created a form to be used for displaying insurance information. This form allows users to select the following: To Get Started: State You Live In: Car Information: Model Year: Original Listing Price: Your Car Currently Is: Your Information: Do You Rent Or Own? Are You Married? Do You Have Children Under 18 Years Of Age? Gross Annual Household Salary Do You Have Health Insurance? How Much Are You Worth In Total Assets (Savings, Equity, Stocks, 401K, Car, Home, etc...) ------------------------ Next to each question, I have a box from which they can select their options (standard html form code). The form has an action and the method is post. Some code is displayed below.. Now so far I am able to display the text of whatever item they selected, by using Echo $_Post etc and the answer page... Here is my problem... I want to display to the user, "recommended insurance limits" based on the data they select from the drop down boxes. So... If a user lives in Alabama, and has an income of $150K+, I want to display a different answer than someone who only earns $30K and lives in Alabama, and the list goes on, (range of options for each question). I have no idea what sort of code to use to display the appropriate answer. I thought I could use the "if, elseif, else" statement, and simply do hundreds of variations on it for each state, but surely there is a more refined and less bloated code for doing such a thing? I would need to display a different answer for the user, for each separate option they choose. Example) Alabama, Model Year of 1995, Salary of $50K would be DIFFERENT then Alabama, Model Year of 2000, Salary of $50K, etc... Thank you for your time. Here is my php code. <?php $state = $_POST["state"]; $modelyear = $_POST["modelyear"]; $carprice = $_POST["carprice"]; $carownership = $_POST["carownership"]; $homeownership = $_POST["homeownership"]; $marriage = $_POST["marriage"]; $childrenunder18 = $_POST["childrenunder18"]; $salary = $_POST["salary"]; $healthinsurance = $_POST["healthinsurance"]; $assets = $_POST["assets"]; ?> <?php if ($state=="Alabama") { echo "Alabama requires the following minimum insurance limits:<br /> $25,000 - Liability Per Person<br /> $50,000 - Liability For Total Persons<br /> $25,000 - Property Damage Total"; } elseif ($state=="Alaska") { echo "Alaska requires etc..."; } else { echo "You did not select a state."; } ?>
×
×
  • 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.