Fake Google

Here is how to create a fake Google website.  This come from the CS75 class of Harvard’s OpenCourseWare and is covered in first lecture.

http://cs75.tv/

Google3.html sourcecode

</pre>
<html>
<head>
         <title>Fake Google</title>
     </head>

<body>

<div align="center">

<form action="google3.php" method="post">
                 <input name="q" type="text" />
                 <br />
                 <input type="submit" value="Fake Search" />
             </form>
         </div>

</body>
</html>
<pre>

Google3.php source code:

<html>
  <head>
    <title>Fake Google</title>
  </head>
  <body>
    <div align="center">
      You searched for: <? print($_POST["q"]); ?>
    </div>
  </body>
</html></pre>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s