Resized windows localhost vs remote

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a link on a Google Sites website for an email list to which a =
and email also can be added. The link opens a simple HTML web page with =
boxes for name, email, and a password. There is also a button to access =
add to the email list. This invokes a PHP script.

If the proper password is supplied, the name and address is added to an=20
SQLite database. Then, the email list is displayed.

The HTML form was the same size as the original website, and I thought =
would look better if I resized it smaller. It didn't work with the =
server, but it did on the remote server:

    <script language=3D"JavaScript">

However, I also found that the web page created by the script was also=20
resized, which could probably be done with another resize. But when the=20
<back> button is clicked to return to the original website, it is also=20
resized to the smaller window, which is definitely not wanted.

There's not much I can do for the website, so perhaps it would be better =
combine the HTML form which allows the addition of a name and email =
with the PHP email list. I suppose that's the best way to do this. But I =

still wonder why there's a differencer between the localhost and the =
server for resizing windows.


Re: Resized windows localhost vs remote

Quoted text here. Click to load it

It's somewhat unclear what you want. If you want to resize a form, you
use CSS for that, not JavaScript. Maybe it helps if you put screen shots
online somewhere of what you get and what you want?

John Bokma                                                               j3b

Blog:    Facebook:
    Freelance Perl & Python Development:

Re: Resized windows localhost vs remote

Quoted text here. Click to load it

Sorry, I was a bit distracted and confused when I wrote that. What I =
originally was a sort of small pop-up form where one could enter a name, =

email address, and password, and then go to a list of emails, where the=20
entered name and email would be added if the password was correct. Then =
would have preferred that clicking back from that page would return to =
original web page. But after some thought, that's not really what I =

Here is what I came up with. It is a list of emails in an <iframe> that =
derived from a list created by the PHP script from an SQLite database. =
the top is a place to enter name, email, and password. If the password =
correct, the email is added, and when you return to the form and refresh =
you can see it. But I wanted to have it return automatically, so I used =
javascript redirect in the PHP script, but now the echoes of the =
of the script are not shown.

The redirection is done as follows:

    if ($AuthOK)
        echo( "Email $Email for $Name added" );

    echo "\n<br />" . $_SERVER['HTTP_REFERER'] ;
    echo '<script type=3D"text/javascript"> window.location = "' .=20
$_SERVER['HTTP_REFERER'] . '"; </script>' ;

Now the only thing I really need is to refresh the email list when=20
redirected back. I added a JavaScript alert() which serves instead of =
echoes. Interestingly, there is no output until after the sleep() has=20
finished, and then the echoes appear until the alert box is clicked.

Maybe some of these things can be be done better in other ways.



Re: Resized windows localhost vs remote

Quoted text here. Click to load it

That form of redirecting also breaks the <back> button because it opens =
PHP script from which it was redirected. I guess the user can click the =
button themselves.

The main web page I'm working on is, where =
is a link to the "Contact Emails" which uses the old idea. I'll fix that =

once I'm satisfied with this thing.


Site Timeline