TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-07-2010, 01:49 PM   #1 (permalink)
The Visitor
Newcomer 
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
crimsont is on a distinguished road
Default auto update of a form Can it be done only with PHP

Hello

I hope I can get some ideas here!

I created a form for booking a different services, and all these services has many features. So I want to select a feature, and its cost automatically to be added at the total cost(which should be displayed and updated on the same page), via drop-down menu selection.

I know that in order the values from the form to be processed, I have to submit the form, but is it possible only with php, by clicking on an option in the dropdown menu the total sum to be shown on the same page each time feature is selected.

Cheers in advance!
crimsont is offline  
Reply With Quote
Old 07-09-2010, 08:59 AM   #2 (permalink)
The Acquainted
 
EyeDentify's Avatar
 
Join Date: Nov 2007
Location: Sweden
Posts: 106
Thanks: 13
EyeDentify is on a distinguished road
Default

Hello.

The first thing you have to know is that PHP is a so called Server-side script language wich means that it?s run on the server and the result of that is then sent to the browser (client).

So in order for your form to react to any interactions you use JavaScript wich is a Client-side script language wich means it?s run on the client (browser).

Have a look att some JavaScript frame works such as:
http://www.jquery.com

In other words use PHP on the server side for the backbone to take care of all the things you can do with PHP. Such as talking to database servers (MySQL) and others supported by PHP.
Have a look at http://www.php.net

For mor info on what you can do with PHP.

Good luck to you.

/Eye
__________________
Of course the whole point of a doomsday machine, would have been lost if you keep it a secret.
EyeDentify is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
update table with php form calexandru Absolute Beginners 0 08-04-2009 05:18 PM
Basic php form update mysql script dp2 Absolute Beginners 3 03-11-2009 04:06 PM
PHP fill in form help sacred_tinker Absolute Beginners 6 10-08-2008 12:28 PM
email fill in form help? PHP sacred_tinker Absolute Beginners 19 05-28-2008 05:58 AM
PHP Contact Form - 2 Questions ncmason General 0 05-26-2008 02:38 AM


All times are GMT. The time now is 03:53 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design