Also, you do not want to send a username and password via GET.
Main Topics
Browse All TopicsHi,
i am writing small application where i have a simple login form. it accepts POST data and if login is uaccuesful, it redirects the user to another page.
The problem is that on Nokia series 40 default browser it started to get warning when i use redirection just after using POST submition. I get following warning:
"Data you are sending will be redirected to another server. Continue?"
It is very annoying as it happens many times in the app and users instead of focusing on the content, they just need to confirm the redirection many times.
The strange bit is that i started to get this warning week ago, probably during some changes in the header(i guess). So this code worked ok on the same phones/browsers without any warning.
For the sake of simplicity i have removed db check in the following example that causes these warnings.
<?php
if(!empty($_POST)) {
header("location:menu.php"
}
?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/D
<html xmlns="http://www.w3.org/1
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UDN</title>
</head>
<body>
<h1>Index2</h1>
<form action="index2.php" method="post">
Username<br />
<input name="usr" type="text" size="10"/><br />
Password<br />
<input name="psw" type="password" size="10"/><br />
<input type="submit" value="Login"/>
</form>
</body>
</html>
Warning are not shown if i use "get" instead of "post" method in the <form> tag, but i need POST cause GET is limited on 255 chars.
Can someone please help me and tell me what to change to get rid of these warnings?
Thanks in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: jbu2010Posted on 2008-10-09 at 13:49:46ID: 22682289
How about just a simple meta refresh?
.php'>"
echo "<meta http-equiv='refresh' content='0;url=anotherpage