Category: PHP Interview Questions and Answers

Basic PHP Programs 0

Basic PHP Programs

Add two Numbers ?php if(isset($_POST[‘submit’])) { $num1=$_POST[‘num1’]; $num2=$_POST[‘num2’]; $result=$num1+$num2; echo “Sum of ” .$num1. ” and “.$num2. ” is ” .$result; } ?> <!DOCTYPE html> <html> <head> <title>Add two number</title> </head> <body> <table> <form...