hi, I'm having trouble with code that are works great in online but on my local pc I'm getting errors said

Undefined index: step in C:\webserver\apache\htdocs\index.php on line 46

please see line 46 where it said

if (!$_GET['step'] && !$_POST['step']) {

does anyone tell me how can i solve this please!

please see in the bold line...

$module_title = 'Jcow ';
$module_name = 'admin';
$writable_arr = array('./my/config.php');
$default_lang = 'en';
$dbtype = 'MySQL';
$homeurl = "http://".$_SERVER['HTTP_HOST'].preg_replace("/\/install\.php/i","",$_SERVER['REQUEST_URI']);
if (preg_match('/localhost/i',$homeurl) || preg_match("/^192\.168/i",$homeurl) || preg_match("/^10\.2\./i",$homeurl) || preg_match("/^127\.0\.0/i",$homeurl)) {
$testing = 1;
// header ----------------------------------------------------------------------------------------------------------------------


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="install/default.css" rel="stylesheet" type="text/css" media="all" />
<title><?php echo' TK SNS '?></title>

<div id="logo">
<span style="font-size:20px;font-weight:bold">
TK Network Installation</span>
<div id="content">
<div id="main">
if (!$_GET['step'] && !$_POST['step']) {

<table width="100%">
<tr><td colspan="2">
<i><?php echo $msg['about']; ?></i>
<form action="install.php" method="post">
<tr><td colspan="2" class="row1">
<td align="left" class="row2">
<?php echo $msg['dbhost']; ?></td><td class="row2"><input type="text" name="dbhost" value="localhost" /></td>
<td align="left" class="row2"><?php echo $msg['dbname']; ?></td><td class="row2"><input type="text" name="dbname" /><br />(The database should be existing)</td>
please help thanks.