Results 1 to 5 of 5

Thread: Saving values of fields

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Saving values of fields

    I have form and code at the top:
    PHP Code:
    <form action="<?php echo $PHP_SELF?>" method="post" >
    When there is shown error above form, fields are cleared.

    1. How to do that it will be in the field values as user gives
    2. How to do clear function with image if user would like to clear all fields


    Need help.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I do not understand your first question.
    2. How to do clear function with image if user would like to clear all fields
    Code:
    <img src="myimage.png" onclick="this.form.reset();" />
    <noscript>
      <input type="reset"/>
    </noscript>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I need code that when user clicks on my image (e.g. image1.gif)
    it will clear all fields in form. User has possibility not to clear each field, just easy all fields.

    I do not know what is wrong, but please advise why it does not work your code?
    Last edited by toplisek; 01-23-2006 at 12:42 PM.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This is the purpose of the code I have posted.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh Yes, second question, sorry.

    Do you know why it does not work?

    I have put the following code:

    <img src="image1.gif" onclick="this.form.reset();" />
    <noscript>
    <input type="reset"/>
    </noscript>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •