Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 29th, 2007, 02:36 PM
Registered User
Join Date: Mar 2007
Location: delhi, delhi, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to bhuwan81
Default refreshing problem

<form name=frm action="" method=post>
Which is the country of India.<br>
<input type=hidden name=check value=check>
<select name=country onchange=submit()>
<option value=select>Please select one....</option>
<option value=Calcutta>Calcutta</option>
<option value=Delhi>Delhi</option>
<option value=Chennai>Chennai</option>
<script language=javascript>
function submit()
  if ($_POST[country] == "Delhi")
  echo "Correct";
  echo "Incorrect";

Problem in this is when I refresh the page previous answer still appears on the page.
Suppose I selected the value Calcutta then incorrect is echoed.
When I refresh the page incorrect still appears there.
Please help me solve this problem.
Thanking you.
kindly email me at bhuwan81@yahoo.com

  #2 (permalink)  
Old April 10th, 2007, 07:12 AM
Friend of Wrox
Join Date: Nov 2005
Location: Rotterdam, , Netherlands.
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts


If the refresh thing is a problem why not all do it in javascript?

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with refreshing the page fozia_izhar .NET Framework 1.x 1 March 24th, 2007 02:18 PM
DataGrid refreshing Problem param99 ASP.NET 1.0 and 1.1 Professional 1 November 27th, 2006 10:08 AM
Chart Refreshing problem. raul123 VB.NET 2002/2003 Basics 0 October 7th, 2005 04:06 PM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM
Problem In refreshing a page. zaeem Classic ASP Components 2 November 4th, 2003 12:42 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.