Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 26th, 2004, 01:43 PM
cwick99 cwick99 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 55 cwick99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to cwick99
Use Javascript onChange event to call a PHP function

Hi,
I have a HTML select list, which i want to add the onChange() event to...how can I have that onChange() event call a PHP function?

Thanks

Reply With Quote
  #2  
Old April 26th, 2004, 04:57 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Use Javascript onChange event to call a PHP function

you would need to have the onChange event submit the page and fire of the function at that point. You cannot directly call php functions from Javascript.


Reply With Quote
  #3  
Old April 26th, 2004, 05:06 PM
cwick99 cwick99 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Maryland, USA
Posts: 55 cwick99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to cwick99
RE: Use Javascript onChange event to call a PHP function

So what can I do about this:
I have a drop down list that is created from my database. Whne a user selects a different item in the list, I want to update a textfield with some values based on what they selected.

The list shows the Title of game, however, the recordset that i used to query the database contains all fields of the table, so when they select a title in the list, i want to update text fields with that Title's related info (which is in my recordset).

how can i do this then?

Thanks in advance

Reply With Quote
  #4  
Old April 26th, 2004, 06:22 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by zombie.

Reason:

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Use Javascript onChange event to call a PHP function


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway