This is my first post in this forum, I am new to PHP, I have been developing in it for about a few months now and I am pretty excited about this language! So much better than asp.I have come to a roadblock though, I am working on this project that needs the following:
PHP, Ajax - Multiply a variable by a dropdown, add two radio buttons and then echo the total at the bottom in php (so i have the variable so i can write it to the DB)
My issue, I cannot get this to do the ajax request, I need to do this when i choose a number from the dropdown and when I click the radio button (this is the part that has gotten me confused)
So in short, $100 dollars * Dropdown + Radiobutton selected = Total
I am pulling my hair out with this, does anyone have any examples or help? Thanks!
PHP Ajax simple form - Help!
Moderator: General Moderators
-
PHPDevelopment09
- Forum Newbie
- Posts: 1
- Joined: Mon Jul 27, 2009 8:24 pm
Re: PHP Ajax simple form - Help!
Do you have any code yet? It would be helpful to have something to work from.
Have you ever successfully used AJAX to send a request and retrieve a response from a PHP script?
Edit: This post was recovered from search engine cache.
Have you ever successfully used AJAX to send a request and retrieve a response from a PHP script?
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Wed Jun 16, 2010 4:03 pm, edited 1 time in total.
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: PHP Ajax simple form - Help!
This doesn't need an Ajax request, surely. The browser already knows the values associated with the dropdown and with each radio button. You could use plain JavaScript to calculate and display the value you want.