Skip to content

Instantly share code, notes, and snippets.

View rushdimohamed09's full-sized avatar

Rushdi Mohamed rushdimohamed09

View GitHub Profile
<?php
$action=$_REQUEST['action'];
if ($action=="") /* display the contact form */
{
?>
<form action="contact.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="action" value="submit">
Your name:<br>
<input name="name" type="text" value="" size="30"/><br>
Your email:<br>
<?php
require_once("functions.php");
require_once("db-const.php");
// define variables and set to empty values
$unameErr = $fnameErr = $lnameErr = $emailErr = $cemailErr = $passwordErr = $cpasswordErr = $cnumberErr = $addressErr = "";
$uname = $fname = $lname = $email = $cemail = $password1 = $cpassword1 = $cnumber = $address = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
function readURL(input)
{
if (input.files && input.files[0])
{
<html>
<title> Registration in process..</title>
<head><style>
.error {color: #FF0000;}
.errorgreen {color: #0C3;}
</style>
</head>
<body>
<?php
<html>
<title> Registration in process..</title>
<head><style>
.error {color: #FF0000;}
.errorgreen {color: #0C3;}
</style>
</head>
<body>
<?php
<html>
<title> Registration in process..</title>
<head><style>
.error {color: #FF0000;}
.errorgreen {color: #0C3;}
</style>
</head>
<body>
<?php
<!doctype html>
<html>
<HEAD>
<TITLE> Add/Remove dynamic rows in HTML table </TITLE>
<SCRIPT language="javascript">
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell1 = row.insertCell(0);
<?php
require_once ('../Connection/connection.php');
?>
<?php
$sql1 = "SELECT * FROM cards order by id asc";
$result1 = $conn->query($sql1);
$arr = array();
$i=0;
$count =0;
if ($result1->num_rows > 0) {
<?php
require_once ('../Connection/connection.php');
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<?php
require_once ('../Connection/connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery Populate City Dropdown Based on Country Selected</title>
<script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>