PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: refreshing problem Posted by tvienti on 13 May 2004 at 8:53 PM
Corran,

It sounds like you're coming from an ASP.NET background. If you want to retain input values on a page after it's refreshed, it requires a little more legwork in PHP.

Basically the PHP needs to spit the form data back out with the values set... for example

<input type='text' value='<?php echo $_GET['my_input'];?>' name='my_input'>

Hope that helps

T

:
: Hi everybody!
:
: I'm having a bit of a problem with a page I'm trying to construct.
: The page contains a form on which I have placed several different input types (select, radio, etc ...).
: Now each time I select some values from the input types after which I refresh the page, all variables within the input types are returned to their standard values; the entire page just starts all over!
:
: I know there is some way to keep this from happening but I'm not sure about the exact syntax I should use. Can anybody help me?
:
: Thnx
:
: Corran
:

Thread Tree
Corran refreshing problem on 12 May 2004 at 7:06 AM
tvienti Re: refreshing problem on 13 May 2004 at 8:53 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.