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

  • Home
  • SEARCH
  • 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 7049143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:58:38+00:00 2026-05-28T02:58:38+00:00

Hi i wanted to make registration form. but i don’t know how to return

  • 0

Hi i wanted to make registration form.
but i don’t know how to return data if the data failed after i click submit.
the data became empty so i wanted to restore before user click submit.

 <form id="form1" name="form1" method="post" action="doregister.php">
 <input type="text" name="txtnama" id="txtnama" />
 <textarea name="txtalamat" id="txtalamat" cols="30" rows="5"></textarea>
 <input type="submit" name="txtsubmit" id="txtsubmit" value="Submit" />
 <input type="reset" name="txtreset" id="txtreset" value="Reset" />
 </form>

here the picture:
http://tinypic.com/r/160sopk/5

Thanks in advance for any help, and I’m really sorry if this has been asked before.

  • 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-05-28T02:58:38+00:00Added an answer on May 28, 2026 at 2:58 am

    You have to put back the posted values:

    <form id="form1" name="form1" method="post" action="doregister.php">
      <input type="text" name="txtnama" id="txtnama"<?php echo (isset($_POST['txtnama'])) ? ' value="'.$_POST['txtnama'].'"' : '') ?>" />
      <textarea name="txtalamat" id="txtalamat" cols="30" rows="5"><?php echo (isset($_POST['txtalamat'] ? $_POST['txtalamat'] : '')) ?></textarea>
      <input type="submit" name="txtsubmit" id="txtsubmit" value="Submit" />
      <input type="reset" name="txtreset" id="txtreset" value="Reset" />
    </form>
    

    If doregister.php is another page, you should check the values in the current page then redirect to doregister.php if ok.

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

Sidebar

Related Questions

I wanted to make this script work somehow, but i find that after you
i wanted to make a double border but with no space in between and
I wanted to make simple form, without awesome div's and CSS - it structure
i wanted to make a simple data entry application. So i did the following
I am creating a simple register form and I wanted to know if anyone
I wanted to make my own WebApp for testing so I will know what
I wanted to make a dictionary using BST but I did not have any
I wanted to make a templated constructor, but I found I had no way
I wanted to make a facebook application in java using servlets and JSP.But as
I wanted to make a Java based web crawler for an experiment. I heard

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.