General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 9th, 2003, 11:27 PM
davidv851 davidv851 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NJ
Posts: 2 davidv851 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to davidv851
Question Post data won't clear

Here's my problem. I'm in the process of writing my first "real" database interface, and i keep running into this problem, both in the PHPMyAdmin and my own scripts. The script works as it should when i first load it, however when try to access the script after that, it keeps the values i originally typed. I get the same results when i hit the "reload" button. I am running PHP 4.3 with Apache 2 on a win2K OS. Is this a script problem or a problem with IE or am i missing something else?

Thanks
Dave

Reply With Quote
  #2  
Old November 10th, 2003, 07:53 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
You're probably going to need to post some code.

Reply With Quote
  #3  
Old November 10th, 2003, 08:56 AM
davidv851 davidv851 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NJ
Posts: 2 davidv851 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to davidv851
sorry about that

Here's the script i'm having a problem with now:

<html>

<body>


test:

<?php


if ($_POST["submit"]) {

// process form

$db = mysql_connect("localhost", "root");

mysql_select_db("reverve",$db);

$sql = "INSERT INTO comics (id,name,company,instock) VALUES ('$id','$name','$company','$instock')";

$result = mysql_query($sql);

echo "Thank you! Information entered.\n";

} else{



// display form



?>



<form method="post" action="<?php echo $PHP_SELF?>">

Id:<input type="Text" name="id"><br>

Title:<input type="Text" name="name"><br>

Company:<input type="Text" name="company"><br>

In Stock:<input type="Text" name="instock"><br>

<input type="Submit" name="submit" value="Enter information">

</form>



<?php



} // end if



?>







</body>

</html>

Reply With Quote
  #4  
Old November 10th, 2003, 09:12 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Only thing I can think of is that at some point, maybe you clicked a Windows option to remember form fields you've filled in. There's nothing in the code (and certainly nothing in PHPMyAdmin's code) that should cache the data you've filled out.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Post data won't clear


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT