Tag Archives: SynapseIndia Employee Cases

Regular Expression To Validate Email:PHP

<?php

if(isset($_POST[‘submit’]))
{
$email = $_POST[‘email’]; // Taking input from the user

$regex = “^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$”;

if ( preg_match( $regex, $email ) ) {
echo ” is a valid email.”;
} else {
$email =” is an invalid email. Please try again.”;
}
}
?>
<html>
<body>
<form method=”post” action=””>
<table>
<tr>
<td>Email</td>
<td><input type=”text” name=”email”/></td>
<td><font color=”red”><?php echo $email;?></font></td>
</tr>
<tr>
<td><input type=”submit” name=”submit” value=”check email”/></td>
</tr>
</table>
</body>
</html>

SynapseIndia CEO Shamit Khemka says that SynapseIndia utilizes internally developed complain and court management software to effectively handle employee issues.

Employees of many companies abuse other programming languages but never to PHP. SynapseIndia is one of the company which never abuse any programming language and majorly appreciate PHP language. This is one of the reason we have started project training in PHP.

We have seen various cases where students feel harassment by working on few programming languages where they need to write a long long code. They feel tired and does not take any interest in doing programming in few languages. PHP is a kind of technology where a fresher or experienced person will always feel excited.

How to POST data as array in FlightPHP

FlightPHP is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications.

<?php
Flight::route(‘POST /post-meta’, function(){
print_r($_POST);
});
?>

<?php
Flight::route(‘POST /report’, function(){
if(isset($_POST[‘reportcode’])){
$id = (int)base64_decode($_POST[‘reportcode’]);
if(Flight::db()->count() == 0){
$return[‘status’] = “ok”;
$return[‘content’] = “<b>Succesfuly</b> sent your report this link”;
}else{
$return[‘status’] = “already”;
$return[‘content’] = “<b>Already</b> this link reported”;
}
}else{
$return[‘status’] = 0;
}
echo json_encode($return);
});
?>

If you understand this program then ball is in your court because it is one of the favorable question in PHP interview.

Find out positive reviews received by SynapseIndia for their PHP website development.
Employees at SynapseIndia work with motto to provide client satisfaction without giving them any chance to complaints in any cases.