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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:39:39+00:00 2026-06-05T19:39:39+00:00

Please see this example: if (strlen($_SESSION[‘userDetails’][‘THISNAME’]) == 0) { $_SESSION[‘userDetails’][”.$THISNAME.’Error’] = autofocus; include $docRoot/html/forms/reg/user_info.html.php;

  • 0

Please see this example:

if (strlen($_SESSION['userDetails']['THISNAME']) == 0)
{
    $_SESSION['userDetails'][''.$THISNAME.'Error'] = "autofocus";
    include "$docRoot/html/forms/reg/user_info.html.php";
    exit();
}

How would i use the name of THISNAME as I have done to create a new variable that appends Error on the name so in this example the output would be THISNAMEError?

Thanks!

  • 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-05T19:39:40+00:00Added an answer on June 5, 2026 at 7:39 pm
    $required_fields = array( 'name', 'email', 'password', 'password_verification' );
    $errors = array();
    
    foreach ( $required_fields as $field )
    {
       if ( !isset($_POST[$field]) )
       {
          $errors[$field] = 'not set';
       }
    }
    
    if ( count($errors) > 0 )
    {
        // there will be errors in thy forms
    }
    

    Is this what you are looking for ?

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

Sidebar

Related Questions

Please see this piece of code: #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i
please see this example http://jsfiddle.net/7trcV/ what I'm trying to achieve is ability to put
Please see this simple CATiledLayer example https://github.com/seanhess/CATiledLayer-Example It consists of one viewController with a
Please see this post for code example : How to map Type with Nhibernate
I've spent hours with this but haven't managed... Please see example below - How
I am stuck on range search query. Please see this below examples : SELECT
please see this question. The initial question was solved, and I have a method
Please see this : http://jsfiddle.net/ymSpY/ . If you can see <td> has an inner
Please see this fiddle I want the scrolling div stop following when left div
Important : Please see this very much related question: Return multiple values in C++

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.