Add office photos
Employer?
Claim Account for FREE

T3 Softwares

2.1
based on 24 Reviews
Filter interviews by

Samarth Electricals Interview Questions and Answers

Updated 6 Oct 2024

Q1. Why we use $requested in php

Ans.

The $requested variable in PHP is used to store user input or data passed through a form or URL.

  • Used to access user input or data submitted through forms or URLs

  • Helps in processing and manipulating user input within PHP scripts

  • Prevents direct access to sensitive data by storing it in a variable

Add your answer

Q2. Database connectivity query in php

Ans.

Database connectivity in PHP involves establishing a connection to a database server and executing queries to retrieve or manipulate data.

  • Use PHP's built-in functions like mysqli_connect() or PDO to establish a connection to the database

  • Execute SQL queries using functions like mysqli_query() or PDO::query() to interact with the database

  • Remember to handle errors and close the connection after use to ensure security and efficiency

Add your answer

Q3. Explain Get , post methods

Ans.

GET and POST are HTTP methods used to send data to a server in web development.

  • GET method sends data in the URL, visible to users

  • POST method sends data in the body of the request, not visible to users

  • GET requests are cached by the browser

  • POST requests are not cached and are more secure for sensitive data

  • GET requests have length restrictions, while POST requests do not

Add your answer

Q4. Create form in html

Ans.

Creating a form in HTML involves using the <form> tag and various input elements like text fields, checkboxes, and buttons.

  • Use the <form> tag to create the form structure

  • Add input elements like <input type='text'> for text fields, <input type='checkbox'> for checkboxes, and <input type='submit'> for buttons

  • Use labels <label> to provide descriptions for input fields

Add your answer
Discover Samarth Electricals interview dos and don'ts from real experiences

Q5. Attributes in php

Ans.

Attributes in PHP are used to add metadata to classes, methods, or properties.

  • Attributes are declared using the #[Attribute] syntax.

  • They can be used to provide additional information about the code.

  • Attributes can be retrieved using reflection.

  • Example: #[Route('/home')] class HomeController {}

Add your answer

Q6. Sql query for form

Ans.

SQL query for submitting form data to database

  • Use INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...)

  • Make sure to sanitize user input to prevent SQL injection

  • Consider using prepared statements for security

Add your answer

Q7. Address in mumbai

Ans.

Mumbai is a bustling city in India known for its vibrant culture and diverse population.

  • Mumbai is located in the state of Maharashtra in India

  • Some popular areas in Mumbai include Bandra, Juhu, and Colaba

  • The address format in Mumbai typically includes the building name, street name, locality, and pin code

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.8
 • 2k Interview Questions
4.2
 • 290 Interview Questions
3.8
 • 203 Interview Questions
3.9
 • 179 Interview Questions
3.6
 • 146 Interview Questions
3.8
 • 135 Interview Questions
View all
Top T3 Softwares Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter