Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-12-06 03:30:48
Point:500 Replies:6 POST_ID:828437USER_ID:11059
Topic:
Visual Basic Programming;PHP Scripting Language;JavaScript
I just create a php script attached as follows for visitor login process , every visitor who interested in my website needs to type
given login and password from me in order to get into my webpage. The question is the script is no any issue at all
and visitor is fine to login into my webpage site if passowrd and login is corect, but question is here when the vistors click
the reload button to see any webpage data update after succesful login, Internet Explorer7 will give them a warning message alert or
popup windows box.The message is this
" Re-display this webpage, Internet Explorer, must re-send your previous informion, if doing shopping online,
presss cancel to avoid repeat trade, otherwise, please press re-try to display the webpage again "
I try to work around in Internet Explorer 7 's tools menu for internet options in order to tick check box for ignoring
the alert IE message box. But it is not working at all or no any response, And I also found I get similar message box in Firefox
as IE
Please advise any method to avoid the IE warning message box popup or comes out , it seems the message is came out because
IE need to re-check the vistors' login and password again before reloading the target webpage. That is annoying or trouble
to visitor to see the message box every time they reload my webpage by click reload button
I also google it and find out one website about ignore IE warning message box at
http://www.ehow.com/video_4985518_stop-internet-explorer-script-error.html, but is just for stoping error IE script message
Any good webiste for my issue , please advise and I am not familar with php coding
Duncan
given login and password from me in order to get into my webpage. The question is the script is no any issue at all
and visitor is fine to login into my webpage site if passowrd and login is corect, but question is here when the vistors click
the reload button to see any webpage data update after succesful login, Internet Explorer7 will give them a warning message alert or
popup windows box.The message is this
" Re-display this webpage, Internet Explorer, must re-send your previous informion, if doing shopping online,
presss cancel to avoid repeat trade, otherwise, please press re-try to display the webpage again "
I try to work around in Internet Explorer 7 's tools menu for internet options in order to tick check box for ignoring
the alert IE message box. But it is not working at all or no any response, And I also found I get similar message box in Firefox
as IE
Please advise any method to avoid the IE warning message box popup or comes out , it seems the message is came out because
IE need to re-check the vistors' login and password again before reloading the target webpage. That is annoying or trouble
to visitor to see the message box every time they reload my webpage by click reload button
I also google it and find out one website about ignore IE warning message box at
http://www.ehow.com/video_4985518_stop-internet-explorer-script-error.html, but is just for stoping error IE script message
Any good webiste for my issue , please advise and I am not familar with php coding
Duncan
<?if (($_POST['username']=="checkusername") && ($_POST['password']=="checkpassword")) { echo '<html><!<body style="background-color:maroon"><title >For testing only</title><frameset rows="155,*" cols="*"><frame id="myFrame" name="topFrame" frameborder="no" scrolling="NO" src="/afterloginpage.html"><script language="javascript"> document.getElementById("myFrame").noResize = true;</script><frameset cols="232,*" ><frameset rows="170,232,*"><frame name="secondFrame" src="/bottomleft.html" frameborder="no" scrolling="no" ></frame><frame name="thirdFrame" src="bottomleft7.html" frameborder="no" scrolling="no" ></frame><frame name="forthFrame" src="bottomleft9.html" frameborder="no" scrolling="no" ></frame></frameset><frame name="mainFrame" marginwidth=0 marginheight=0 src="/main.htm" frameborder="no" ></frameset></frameset></html> ';} else { echo '<form name="login_form" method="post"> <h2>Login into www.mywebiste.com </h2> <table width="44%" border="0"> <tr> <td width="34%" valign="top" align="right">username</td> <td width="66%" valign="top"><input type="text" name="username"> </td> </tr> <tr> <td width="34%" valign="top" align="right">password</td> <td width="66%" valign="top"> <input type="password" name="password"> </td> </tr> <tr> <td width="34%"> </td> <td width="66%"> <input type="submit" name="Submit" value="Submit"> </td> </tr> </table> </form>';}?> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:28:29:30:31:32:33:34:35:36:37:38:39:40:41:42:43:44:45:46:47:48:49:50:
Author: duncanb7 replied at 2024-12-08 09:10:48
Are you interested in to my new issue at
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_26666081.html
Please advise
Duncan
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_26666081.html
Please advise
Duncan
Author: duncanb7 replied at 2024-12-06 21:58:01
It is fixed and I put the targe webpage html code for frame into other html called mainpage.html
and redirected in php file once the users is passed the login.
At the URL address bar in IE it will show the webiste as www.mywebsite.com/mainpage.html
And the vistor click the reload button, it will refresh the mainpage.html not index.php and no
any IE warning message box is cames out
<?
if (($_POST['username']=="3988") && ($_POST['password']=="3988")) {
echo '<html>
<meta http-equiv="Refresh" content="0; URL=/mainpage.html" />
</html> ';
and redirected in php file once the users is passed the login.
At the URL address bar in IE it will show the webiste as www.mywebsite.com/mainpage.html
And the vistor click the reload button, it will refresh the mainpage.html not index.php and no
any IE warning message box is cames out
<?
if (($_POST['username']=="3988") && ($_POST['password']=="3988")) {
echo '<html>
<meta http-equiv="Refresh" content="0; URL=/mainpage.html" />
</html> ';
Author: duncanb7 replied at 2024-12-06 21:56:13
It is fixed and I put the targe webpage html code for frame into other html called mainpage.html
and redirected in php file once the users is passed the login.
At the URL address bar in IE it will show the webiste as www.mywebsite.com/mainpage.html
And the vistor click the reload button, it will refresh the mainpage.html not index.php and no
any IE warning message box is cames out
<?
if (($_POST['username']=="3988") && ($_POST['password']=="3988")) {
echo '<html>
<meta http-equiv="Refresh" content="0; URL=/mainpage.html" />
</html> ';
and redirected in php file once the users is passed the login.
At the URL address bar in IE it will show the webiste as www.mywebsite.com/mainpage.html
And the vistor click the reload button, it will refresh the mainpage.html not index.php and no
any IE warning message box is cames out
<?
if (($_POST['username']=="3988") && ($_POST['password']=="3988")) {
echo '<html>
<meta http-equiv="Refresh" content="0; URL=/mainpage.html" />
</html> ';
Expert: KiasChaos83 replied at 2024-12-06 21:00:21
You can't directly get around this as they arrived at that page using a post obviously.
You can indirectly get around this by using AJAX to do the post before taking the user to another page.
You can indirectly get around this by using AJAX to do the post before taking the user to another page.
Accepted Solution
Expert: mdougan replied at 2024-12-06 16:26:07
350 points GOOD
Hi Duncan,
I don't know of a certain solution to your problem. However, I can say that the reason they get this message is that they arrive at your page after submitting a form's "POST" request. And so, when they click reload, it wants to issue the post again.
I don't know if it will work, but, you could try this. In your script, right after the first line, where you check the entered user id and password, if the credentials match, then redirect to another PHP script. Then, if the user reloads, I think they will reload just the redirected page, not resubmit the form (or maybe not, but it is all I can think of to try).
I don't know of a certain solution to your problem. However, I can say that the reason they get this message is that they arrive at your page after submitting a form's "POST" request. And so, when they click reload, it wants to issue the post again.
I don't know if it will work, but, you could try this. In your script, right after the first line, where you check the entered user id and password, if the credentials match, then redirect to another PHP script. Then, if the user reloads, I think they will reload just the redirected page, not resubmit the form (or maybe not, but it is all I can think of to try).
Assisted Solution
Expert: leakim971 replied at 2024-12-06 16:23:38
150 points GOOD
Check this thread : http://www.tek-tips.com/viewthread.cfm?qid=1078796&page=455