Jump to content

Instant Results


unistake

Recommended Posts

Hi,

I am trying to create a fairly simple php form but am having no luck in knowing where to start!

 

 

What I want it to do is. Once the user clicks on the bookmaker name from the List, I would like the relevant bookmaker bonus amount and odds to be echoed in the associated text fields.

Each of the bookmakers generally have their own combinations of bonuses and minimum odds - if that matters.

Also I would like this to be done without clicking a Submit button if that is possible - but i guess I will need some JS for that??

 

Any suggestions on how to do all this would be much appreciated! Thanks

 

This is the very basics of the form i want to use (I have reduced the number of bookmakers on the list - around 40 in total).

<form name="form1" method="post" action="$_SERVER['PHP_SELF']">
<select name="bookmaker" id="bookmaker">
  <option selected>Bet365</option>
  <option>Bet1128</option>
  <option>Betdaq</option>
  <option>Betfair</option>
  <option>Bet Internet</option>
  <option>Bet Direct</option>
</select>
Bonus
<input name="bonus" type="text" id="bonus" value="" size="5">
Min odds
<input name="odds" type="text" id="odds" value"" size="5">
</form>

Link to comment
https://forums.phpfreaks.com/topic/97549-instant-results/
Share on other sites

this is a perfect application for ajax method use. after the user releases the select button from the list on the form the result area is filled in with data that comes back from either a database or the pre-fab php handler...

i have an application and i guess its ok to mention the 'free quote form' on jdmovers.com has just that sort of thing going.

you should be able to view the source code for at least the javascript and the form by 'viewing source'.

then if you want the php hander i can post it here.

hth, eddie

Link to comment
https://forums.phpfreaks.com/topic/97549-instant-results/#findComment-499120
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.