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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:26:21+00:00 2026-05-27T14:26:21+00:00

this is the code I have, I need my message to appear in the

  • 0

this is the code I have, I need my message to appear in the top of my form but I got an error.
I need to print my message right where I put the code print $msg

any idea about this please.

<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
      <table width="300" border="0">
      <tr>
        <td colspan="2"><?php print($msg); ?></td>
        </tr>
      <tr>
          <td> *First name</td>
          <td><span id="sprytextfield3">
            <input type="text" value="" name="RFname" />
            <br>
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td>*Last name</td>
          <td><span id="sprytextfield4">
            <input type="text" value="" name="RLname" />
            <br>
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td>*User name</td>
          <td><span id="sprytextfield1">
            <input type="text" name="UserName" value="" />
            <br />
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td>*Password</td>
          <td><span id="sprypassword1">
            <input type="password" name="UserPass" value="" />
            <span class="passwordRequiredMsg"><br />
            A value is required.</span></span></td>
        </tr>
        <tr>
          <td>*Email</td>
          <td><span id="sprytextfield2">
            <input type="text" name="UserEmail" value="" />
            <br />
            <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
        </tr>
        <tr>
          <td>Web site</td>
          <td><input type="text" name="WebSite" value="" /></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input name="submited" type="submit" onClick="MM_swapImage('Image1','','images/blog.png',1)" value="Register"/></td>
        </tr>
      </table>
    </form>
    </div>
    <div class="image_NewUserRegister"><iframe src="images/Untitled-2.jpg" name="now_regist" width="207" height="280" scrolling="no" frameborder="0"></iframe></div>
  </div>
  <?php
        if(isset($_POST['submited'])) {
            $RFname = $_POST['RFname'];
            $RLname = $_POST['RLname'];
            $USERname = $_POST['UserName'];
            $USERpassword = $_POST['UserPass'];
            $USERemail = $_POST['UserEmail'];
            $USERwebsite = $_POST['WebSite'];

            $check=$db->query("select 1 from loginaccess where Email ='".$USERemail."'");

            if(mysqli_num_rows($check) > 0 ) {
                $msg = "<span style='color:#F00; font-size:14px; font-weight:bold;'>This email already taken</span>";
                }

this is the code I have, I need my message to appear in the top of my form but I got an error. I need to print my message right where I put the code print $msg

any idea about this please.

  • 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-27T14:26:22+00:00Added an answer on May 27, 2026 at 2:26 pm

    You really need to set the message before you try to output it.

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

Sidebar

Related Questions

I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
I need to move backwards through an array, so I have code like this:
Say i have this PHP code: $FooBar = a string; i then need a
If I have code with nested objects like this do I need to use
I have code that does a web-service request. While doing this request I need
I have this piece of code: <li class=selected><a href=/AmIACandidate.html>Am I a Candidate?</a></li> I need
i need help with disk_total_space function.. i have this on my code <?php $sql=select
This might not appear like a programming question, but inherently deals with code. I
I wrote this code I have these errors Cannot implicitly convert type x.Program.TreeNode' to
So I have this code for these Constructors of the Weapon class: Weapon(const WeaponsDB

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.