Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

refreshing problem

CorranCorran Posts: 1Member

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

Comments

  • tvientitvienti Posts: 230Member
    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

    ' 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
    :

Sign In or Register to comment.