Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-31-2006, 07:49 PM   PM User | #1
chornbeck
Regular Coder

 
Join Date: Feb 2006
Posts: 138
Thanks: 11
Thanked 0 Times in 0 Posts
chornbeck is an unknown quantity at this point
How to keep form values from resetting when using $_SERVER['PHP_SELF'];

I have a form that sends its values to a php scrpt that is on the same page as the form, hence the $_SERVER['PHP_SELF']; target for the form.

What I'm trying to do is not have the form values reset when the form submits..

ANy ideas?
chornbeck is offline   Reply With Quote
Old 08-31-2006, 07:59 PM   PM User | #2
Mwnciau
Regular Coder

 
Join Date: May 2006
Location: Wales
Posts: 820
Thanks: 1
Thanked 82 Times in 79 Posts
Mwnciau is on a distinguished road
Code:
<form id="form" onLoad="document.getElementById('form').reset();">
Some thing like that... That is probably wrong also btw
Mwnciau is offline   Reply With Quote
Old 08-31-2006, 08:09 PM   PM User | #3
chornbeck
Regular Coder

 
Join Date: Feb 2006
Posts: 138
Thanks: 11
Thanked 0 Times in 0 Posts
chornbeck is an unknown quantity at this point
That didn't work...

Thanks for trying though...
chornbeck is offline   Reply With Quote
Old 08-31-2006, 09:53 PM   PM User | #4
dsavage666
New Coder

 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
dsavage666 is an unknown quantity at this point
Hmmm...

Do you have your values set to the variable you're entereing?

Code:
<input type=\"text\" name=\"value1\" value=\"$value1\">
dsavage666 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:44 PM.


Advertisement
Log in to turn off these ads.