Need PHP Help...

grazie

New member
Jan 9, 2010
902
14
0
I'm building a page on my site (sort of like a survey) and based on their answers to the survey, I will be sending them offers directly related to what they input. I'm thinking I need a PHP script that determines their geo location, a script that will allow me to split test offers (an offer rotater), and one that will send them that particular offer based on their answers.

Does that make sense?

If not, example:

Q1: What's your name?

Q2: What country do you live in?

Q3: Are you looking for a $2500 Loan?

Q4: How about a bad credit credit card?


As soon as they hit 'complete' or 'apply', a loading screen would come up and say, 'Please wait while we process your request' with that loading icon thing. Then another message would pop up and say, 'We have found the best payday loan for your needs'

Then it fires them off to the offer.


Anyone got an scripts laying around that could do something similar to this?
 


You really do not need a CMS for this. That would be overkill. Maybe I'm missing something, but why can't you just have a page "out.php" that accepts a query string like "?country=usa&loan=yes" and then just use that to decide where to send them? Or do you not know PHP? If you don't, this might be a good opportunity to start learning because it is really a very easy script.
 
You really do not need a CMS for this. That would be overkill. Maybe I'm missing something, but why can't you just have a page "out.php" that accepts a query string like "?country=usa&loan=yes" and then just use that to decide where to send them? Or do you not know PHP? If you don't, this might be a good opportunity to start learning because it is really a very easy script.

I'm just now learning PHP. I guess for the short term I'll just pay a programmer to code something up for me - while setting a long term goal to continue learning PHP
 
Why not just learn by doing it? It's really easy

Set up a formular, use POST.
In the receiving PHP script get the variables with $_POST['fieldname']
Then use php switch/case and/or if/else if it's only a few links, otherwise compare to a database where you also store the link.
 
Honestly, this is exactly the type of form someone would build during their first sample project when learning PHP.

If you have any interest at all in learning it, this is a perfect opportunity to kill two birds with one stone.

Alternatively, if you just want to hire someone and be done with it, this should be very cheap so don't pay a lot for it.
 
if you are using wordpress,
have you ever try using worepress extended plugins.

i'm sure you will be find it.
 
You could have it so that when the form is submitted, a shadow box pops up and pass the form data to a PHP script with AJAX (use of JQuery would be the simplest). The PHP script can determine the results based on the input data and maybe a random number ( maybe use a modulus [% operator] formula based on the current unix stamp and the number of offers available?). Then if you have to redirect, the above suggestion to use something like an out.php may be a good idea.

Or, you know, use a plugin if you can find one. Doing it yourself would be a lot more work, and you would have to dig and learn the techniques; however, the end result (if you don't give up before succeeding ) would be much more fulfilling.

-K