Jump to content


Photo

run php WITH NO a new winodw opening


  • Please log in to reply
2 replies to this topic

#1 adi_c_adi

adi_c_adi
  • Members
  • Pip
  • Newbie
  • 1 posts

Posted 05 February 2006 - 09:35 AM

Hello

I display a button in my html page, and i want when pressed to run a php code that will change an sql database, WITHOUT a new winodw opening, can it be done?
I mean to run some php code with out the user will see any affect on the explorer window.
?
THANKS!

#2 Humpty

Humpty
  • Members
  • PipPipPip
  • Advanced Member
  • 132 posts

Posted 05 February 2006 - 12:01 PM

Only new but I think the only way to do it is to use Java.


to either
a) perform the query required
or if possible
b) to 'include' the php file when the button is pressed, but it may be too late to do that after the page is loaded first time.


....just suspisions....
- Humpty
  #> Where does the light go when it goes out?

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 05 February 2006 - 06:03 PM

You can do this the old-fashioned way (open an IFRAME) or the new way (using XMLHTTPRequest) -- but what does this have to do with MySQL?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users