Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:24:22+00:00 2026-06-02T11:24:22+00:00

How can i remove echo $_POST in my text once I pressed my reset

  • 0

How can i remove echo $_POST in my text once I pressed my reset button? here’s my code, I think this is right but it doesn’t work at all.

HTML

<input type="text" class="text" name="email" value="<?php if(isset($_POST['email'])) echo $_POST['email']; ?>"/>

<input type="reset" value="Clear" name="reset" />

PHP

if (isset($_POST['reset'])){
    unset($_POST);
}

Website Reference: http://www.veryinternational.net/skunk5/page-4.php

Note: Try to fill up one of the required field(marked with red asterisk) and press the first button on left. Try to press the second button, the message on the textbox must be cleared.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:24:24+00:00Added an answer on June 2, 2026 at 11:24 am

    You have two versions of reset here:

    <input type="reset" value="リセット" name="reset" />
    

    This resets the HTML form to its original state, before the user made any input. Meaning, the data you have already put there when generating the page will stay there. This is how the linked page does it.

    <input type="submit" value="Clear" name="reset" />
    

    This would submit the form in the currently filled state. But, as you made the button a submit button, you will have ["reset"]=> string(5) "Clear" in your $_POST or $_GET data. I think this is more what you were looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the post here , the code below can remove the HTML tag,
How would I remove a view from this dialog? I know I can remove
Check this code: http://jsfiddle.net/ZXN4S/1/ HTML: <div class=input> <input type=text size=50 id=test_input> <input type=submit value=send
<?php $name=$_POST['name']; ?> <form method=POST action=<?php echo $_SERVER['PHP_SELF']; ?>> <input type=text name=name> <input type=submit
Having a little bit of trouble with this section of code: if(!empty($_POST['RemoveRequest']) && isset($_POST['RemoveRequest'])){
One can remove all calls to printf() using #define printf . What if I
How to I can remove posts from a specific category from homepages in wordpress?
Is there a way I can remove the background bar image in the SeekBar
I am looking for an API that can remove bundle items added in a
I am wondering How i can remove a part if my string . For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.