English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is the code:









Choose file:




But everytime i click on SendIt it opens the file sendfile.php in another window, how can i open it in the same page or div ?

2007-08-24 10:44:16 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

It looks fine to me. Where are your files located? On your PC? Are you running it from a server that supports PHP?

If your are running the file directly from your file system or your server doesn't support PHP the server won't process the file to HTML that your browser will understand. If it doesn't understand it will try and open it on your PC in a different window.

I hope this helps.

2007-08-24 11:00:17 · answer #1 · answered by IC 2 · 0 0

I don't know why, but this won't work with a div. But if you change your div to an iframe (you can set it so there are no borders or scrollbars), then it will work this way:

calling file:





destination file: (temp2.html in this case)

Yabbadabbadoo



The important things are:
give your iframe a name,
and the form targets it by name

2007-08-24 20:16:40 · answer #2 · answered by Anonymous · 1 0

just add: target='_SELF'

2007-08-25 04:57:10 · answer #3 · answered by just "JR" 7 · 0 0

fedest.com, questions and answers