Current location: Hot Scripts Forums » Programming Languages » PHP » execute php into javascript function


execute php into javascript function

Closed Thread
  #1 (permalink)  
Old 01-04-04, 04:02 PM
Hagoromo Hagoromo is offline
New Member
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
execute php into javascript function

Hi,

I have a form with two inputs (code and name) and a button.
I need to pass the code.value to php for receive the name
assigned to this code, and fill the name input.

How I can do it?
I can write a php call inside a javascript function?

Thanx!!

Bored
  #2 (permalink)  
Old 01-10-04, 01:08 AM
supirman45 supirman45 is offline
New Member
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
THe only way to do this without the entire page refreshing is to have a js function that opens a new window and calls the php code (and passes the code value). this new window will return the result to the main window and close. then use js to fill in the name input.
  #3 (permalink)  
Old 05-23-07, 12:11 AM
haonan haonan is offline
Newbie Coder
 
Join Date: May 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
hi supirman45,

i'm dealing with a problem just like hagoromo.

i want to know about passing values from the new window to the main window.
can u give more (detailed) explanation? if u also give the js function examples, that would be great.

thx before!
  #4 (permalink)  
Old 05-23-07, 02:19 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Haonan, i don't think supirman45 is going to answer that, as he was last active on 01-10-04

Open a new thread in the Javascript forum, you can use AJAX to accomplish what you want

thread closed
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM
php and javascript together? gamextremer2003 PHP 5 11-06-03 02:18 PM
Javascript vs PHP, problem with arrays Chuff JavaScript 0 10-03-03 04:01 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
edit php in Squirrelmail jrcortrightiii PHP 1 07-10-03 02:08 PM


All times are GMT -5. The time now is 07:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.