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 8871191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:55:35+00:00 2026-06-14T17:55:35+00:00

if(isset($_POST[‘submit’])){ $domain=$_POST[‘domain’]; $fname=$_POST[‘fname’]; $sname=$_POST[‘sname’]; $tel=$_POST[‘tel’]; if($domain==){ $error=<h4>Enter Domain </h4>; }elseif($fname == ){ $error=<h4>Enter Firstname

  • 0
if(isset($_POST['submit'])){

$domain=$_POST['domain'];
$fname=$_POST['fname'];
$sname=$_POST['sname'];
$tel=$_POST['tel'];
if($domain==""){
    $error="<h4>Enter Domain </h4>";    
}elseif($fname == ""){
    $error="<h4>Enter Firstname </h4>"; 
}elseif($sname == "")
{
    $error="<h4 >Enter Surname</h4>";   
}elseif($tel=="")
{
    $error="<h4 >Enter telephono no</h4>";  
}
else {

$sql11=mysql_query("INSERT INTO domain VALUES('','$domain','$fname','$sname','$tel','$mobile','$email','$company','$address','$city','$country','$pcode','$tele',
'$fax','$qus','$ans')");
echo $sql;
$db->query($sql);

    }
    }
<div><?php echo $error; ?></div>
<form action="" method="post" name="classic_form" id="classic_form">
<div><h4>Personal details:</h4></div><div style="margin-left: 109px;">
          <div>Domain</div>
    <input type="text" name="domain" id="domain" value="" />
    <div>First name: </div>
    <input type="text" name="fname" id="fname" value="" />
    <div>Surname:</div>
     <input type="text" name="sname" id="sname" value="" />
     <div>Telephone:</div>
    <input type="text" name="tel" id="tel" value="" />
    <div>Mobile:</div>
    </form>

In my registration page, i used php validation. After the user submit the form if it shows validation errors it also resets all the fields. How can i resolve this problem? Without reset the fields i have to show the php validation errors. I also used in each input value. But it shows
“Notice: Undefined index: domain in D:\xampp\htdocs\deena\domainreg.php on line 82” . Please help me to resolve this problem

  • 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-14T17:55:37+00:00Added an answer on June 14, 2026 at 5:55 pm
    <input type="text" name="domain" id="domain" value="<?php echo isset($domain) ? $domain : ''; ?>" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

elseif(isset($_POST['submit'])) { // Look for their user $lookuser = mysql_query(SELECT * FROM `users` WHERE
I am getting this error here is my code if(isset($_POST['submit'])) { $projTit=mysql_escape_string($_POST['projecttitle']); $projCat=mysql_escape_string($_POST['projectcategory']); $budget=intval(mysql_escape_string($_POST['budget']));
I have: if(isset($_POST['submit'])) { if (empty($name)) { echo'<span class=error>ERROR: Missing Name </span><br/>'; } else
I have this: if(isset($_POST[Submit])) { $updatequery = @mysql_query(UPDATE users SET FirstName='.$_POST['firstname'].', LastName='.$_POST['lastname'].', Address='.$_POST['address'].', City='.$_POST['city'].',
I have come across scripts that use: isset($_POST['submit']) as well as code that uses:
I am trying to understand the difference between this: if (isset($_POST['Submit'])) { //do something
Is there a simpler function to something like this: if (isset($_POST['Submit'])) { if ($_POST['login']
<?php if (isset($_POST['first']) && isset($_POST['second']) && isset($_POST['submit']) && $_POST['DDL'] == "+") { $equals =
The problem is when I use $fname = isset($_POST['fname']) ? $_POST['fname'] : 'sample'; die($fname);
here is my scripts. if (isset($_POST['submit'])) { if (is_uploaded_file($_FILES['filename']['tmp_name'])) { echo <h1> . File

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.