Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
possible to populate combobox in PHP without reloading page?
Old 06-03-2005, 12:59 AM possible to populate combobox in PHP without reloading page?
Novice Talker

Posts: 12
Trades: 0
Hello!

is it possible to populate the comboxbox in PHP without reloading the

entire page?

we have three combo boxes the values of second combobox is populated from

database according to selected item in first combobox but I don't need to

regresh entire page !!

Thanks!
jeephp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-03-2005, 05:17 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
You will have to go back to the server to make the database query for the second set of items anyway so I don't think this can be done.

If the first combo box only has a few items in you could display all the possible second ones (invisible) and then show/hide them with javascript.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 06-03-2005, 06:50 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
jeephp,

0beron speaks the truth, but I wanted to elaborate a bit more. Keep in mind that PHP runs on the server. So by definition, any PHP script or task executed by PHP must, by definition, touch the server. JavaScript is intended as the client-side script. Ignoring VBScript for a moment (quite intentionally), anything you wish to do in the browser without going back to the server must generally be done in JavaScript.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to possible to populate combobox in PHP without reloading page?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26774 seconds with 12 queries