Jump to content

chitrang

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chitrang's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. any one? pls help me out..........
  2. thanks bluebyyou ........ but it is because of the server side validation.......so no id null there
  3. hi thanks for your help but this page is working fine ......but when we are redirecting this page to other it is log out .....if you insisst thne i can also paste the code of the payment_information.php the next file...pls see the my latest past i have something good to look that i am redirecting the page from http to https.........pls see and let me know what that redirecting from http to https is there any affect to the session
  4. if($_POST['rdAccountType'] == "y") { $_SESSION['price'] = '149.99'; } else{ $_SESSION['price'] = '19.95'; } echo "\n<meta http-equiv=\"refresh\""." content=\"0;url=https://fsbototalaccess.com/payment_information.php\">\n"; ?> if you see here i am adding property and then redirect to the payment file in https is it possible thet that setting null to session??
  5. <? session_start();?> <? include "config/dbCon.php"?> <? //include "config/security.php";?> <? include_once "classes/clsGeneral.inc"; // Object of class User is created $objGeneral = new General(); ?> <? include "header.php"?> <? include "top_menu.php"?> <link href="css/oil.css" rel="stylesheet" type="text/css" /> <tr> <td valign="top" id="outsidecontentbg"> <table align="center" cellpadding="0" cellspacing="0" border="0" id="contentarea"> <tr> <td colspan="2" width="100%" valign="top" > <table width="100%" border="0" cellpadding="0"> <tr><td width="51%" rowspan="5"><img class="pic1" src="images/pic1.jpg" height="300" width="375"></td> </tr> <tr><td width="49%"><? include "search.php"?></td> </tr> <tr><td> <? if($_GET['do'] == "success" || $_SESSION['login_id'] != ""){?> <? include "login_after.php"?> <? }else{?> <? include "login.php"?> <? }?> </td></tr></table> </td> </tr> <tr> <td colspan="2" id="bar"> </td> </tr> <tr> <td width="583" valign="top" height="520" bgcolor="#FFFFFF"> <table width="100%" align="center"> <tr> <td> <? include "myaccount_link.php"?> </td> </tr> <? $rsGetProperty = $objGeneral -> getRecByCol("tbl_property", "iPropertyID", $_GET['id'], $sort="", $method=""); $rowGetProperty = mysql_fetch_array($rsGetProperty); ?> <? function CheckError() { $_SESSION['flg']=0; $msg=""; if(!$_POST['rdAccountType']) { $msg .="please select package<br>"; $flg=1; } if(!$_POST['rdPropList']) { $msg .="please Select Property<br>"; $flg=1; } if(!$_POST['txtPrice']) { //$_POST['txtPrice']; $msg .="Please Enter Price<br>"; $flg=1; }else{ if(preg_match("/[^0-9\ ]+/",$_POST['txtPrice'])) { $msg .= "Enter Valid Price<br>"; $flg=1; } } if(!$_POST['txtCity']) { $msg .="Enter City<br>"; $flg=1; } if(!$_POST['txtCountry']) { $msg .="Enter Country<br>"; $flg=1; } if(!$_POST['txtZipcode']) { $msg .="Enter Postal Code<br>"; $flg=1; } if(!$_POST['selState']) { $msg .="Please Select State <br>"; $flg=1; } if($_POST['txtDesc']) { $no_word=str_word_count($_POST['txtDesc']); //echo $no_word; if($no_word > 1000) { $msg .="U have Enter More Then 1,000 words in Description<br>"; $flg=1; } } /*else{ if(preg_match("/[^0-9\ ]+/",$_POST['txtZipCode'])) { $msg .= "Enter Valid Postal Code<br>"; $flg=1; } }//end else */ $_SESSION['msg']=$msg; $_SESSION['flg']=$flg; } ?> <tr> <td> <span class="text4"> <? if($_POST['do'] == "" ){ //echo "flg=== ".$_SESSION['flg']; if($_SESSION['flg']==1) { // echo $_SESSION['sessionvar']; $rowGetProperty =$objGeneral -> getDataByOneCol("tbl_property_temp","Session_id",$_SESSION['sessionvar']); //$rowGetProperty = mysql_fetch_array($rsGetProperty); echo $_SESSION['msg']; } $_SESSION['flg']=0; $_SESSION['msg']=""; $objGeneral->deleteRow("tbl_property_temp","Session_id",$_SESSION['sessionvar']); ?> </span> <form action="add_property.php" method="post" enctype="multipart/form-data" name="frmAddProperty"> <table width="90%" border="0" align="center" cellpadding="0"> <? if($rowGetProperty['vPmtStatus']=="U" || $_GET['id']==""){ ?> <tr> <td colspan="2" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" /> Choose Your Plan</td> </tr> <tr> <td colspan="2" class="text1"><strong>Please select one of the following packages:<span class="text5">*</span></strong></td> </tr> <tr> <td width="42" class="text1"><input <? if($rowGetProperty['vPckage'] == "m"){?>checked="checked"<? }?> type="radio" name="rdAccountType" value="m" /></td> <td width="487" class="text1">Price is $19.95 — Monthly Plan</td> </tr> <tr> <td class="text1"><input type="radio" <? if($rowGetProperty['vPckage'] == "y"){?>checked="checked"<? }?> name="rdAccountType" value="y" /></td> <td class="text1">Price is $149.99 — Yearly Plan</td> </tr> <? } ?> <tr> <td colspan="2" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Type of Property Listing</td> </tr> <tr><td colspan="2" class="text1"><strong>Please select one of the following types:<span class="text5">*</span></strong></td> </tr> <tr> <td class="text1"><input type="radio" <? if($rowGetProperty['vPropertyType'] == "Residential"){?>checked="checked"<? }?> name="rdPropList" value="Residential" /></td> <td class="text1">Residential</td> </tr> <tr> <td class="text1"><input type="radio" <? if($rowGetProperty['vPropertyType'] == "Commercial"){?>checked="checked"<? }?> name="rdPropList" value="Commercial" /></td> <td class="text1">Commercial</td> </tr> <tr> <td class="text1"><input type="radio" <? if($rowGetProperty['vPropertyType'] == "Land"){?>checked="checked"<? }?> name="rdPropList" value="Land" /></td> <td class="text1">Land</td> </tr> <tr> <td class="text1"><input type="radio" <? if($rowGetProperty['vPropertyType'] == "Foreclosure"){?>checked="checked"<? }?> name="rdPropList" value="Foreclosure" /></td> <td class="text1">Foreclosure</td> </tr> <tr> <td colspan="2"> <table width="100%" border="0" cellpadding="0"> <tr><td colspan="2" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Address Information For This Property</td> </tr> <tr> <td class="text1"><strong>Asking Price:</strong></td> <td class="text1"><input value="<?=$rowGetProperty['vPrice']?>" name="txtPrice" type="text" /></td> </tr> <tr> <td width="165" class="text1"><strong>Address:</strong></td> <td width="320" class="text1"><input name="txtAddress" value="<?=$rowGetProperty['vAddress']?>" type="text" id="txtAddress" size="35" maxlength="100" /></td> </tr> <tr> <td width="165" class="text1"><strong>Unit:</strong> </p></td> <td width="320" class="text1"><input name="txtUnit" value="<?=$rowGetProperty['vUnit']?>" type="text" id="txtUnit" size="15" maxlength="10" /></td> </tr> <tr> <td width="165" class="text1"><strong>City:</strong></td> <td width="320" class="text1"><input name="txtCity" value="<?=$rowGetProperty['vCity']?>" type="text" id="txtCity" size="35" maxlength="50" /></td> </tr> <tr> <td class="text1"><strong>Town:</strong></td> <td class="text1"><input name="txtTown" type="text" value="<?=$rowGetProperty['vTown']?>" id="txtTown" size="35" maxlength="50" /></td> </tr> <tr> <td width="165" class="text1"><strong>State/Province:</strong></td> <td width="320" class="text1"> <select name="selState" id="selState"> <? if($_GET['id'] != ""){?> <option value="<?=$rowGetProperty['vState']?>" selected="selected"><?=$rowGetProperty['vState']?></option> <? }else{?> <option value="" selected="selected">Select one: </option> <? }?> <option value="Alabama">Alabama </option> <option value="Alaska">Alaska </option> <option value="Arizona">Arizona </option> <option value="Arkansas">Arkansas </option> <option value="Bahamas">Bahamas </option> <option value="California">California </option> <option value="Colorado">Colorado </option> <option value="Connecticut">Connecticut </option> <option value="Delaware">Delaware </option> <option value="District of Columbia">District of Columbia </option> <option value="Florida">Florida </option> <option value="Georgia">Georgia </option> <option value="Hawaii">Hawaii </option> <option value="Idaho">Idaho </option> <option value="Illinois">Illinois </option> <option value="Indiana">Indiana </option> <option value="Iowa">Iowa </option> <option value="Kansas">Kansas </option> <option value="Kentucky">Kentucky </option> <option value="Louisiana">Louisiana </option> <option value="Maine">Maine </option> <option value="Maryland">Maryland </option> <option value="Massachusetts">Massachusetts </option> <option value="Michigan">Michigan </option> <option value="Minnesota">Minnesota </option> <option value="Mississippi">Mississippi </option> <option value="Missouri">Missouri </option> <option value="Montana">Montana </option> <option value="Nebraska">Nebraska </option> <option value="Nevada">Nevada </option> <option value="NH">New Hampshire </option> <option value="New Jersey">New Jersey </option> <option value="New Mexico">New Mexico </option> <option value="New York">New York </option> <option value="Newfoundland">Newfoundland </option> <option value="North Carolina">North Carolina </option> <option value="North Dakota">North Dakota </option> <option value="Ohio">Ohio </option> <option value="Oklahoma">Oklahoma </option> <option value="Oregon">Oregon </option> <option value="Pennsylvania">Pennsylvania </option> <option value="Puerto Rico">Puerto Rico </option> <option value="Rhode Island">Rhode Island </option> <option value="South Carolina">South Carolina </option> <option value="South Dakota">South Dakota </option> <option value="Tennessee">Tennessee </option> <option value="Texas">Texas </option> <option value="Utah">Utah </option> <option value="Vermont">Vermont </option> <option value="Virgin Islands">Virgin Islands </option> <option value="Virginia">Virginia </option> <option value="Washington">Washington </option> <option value="West Virginia">West Virginia </option> <option value="Wisconsin">Wisconsin </option> <option value="Wyoming">Wyoming </option> <option value="Alberta">Alberta </option> <option value="British Columbia">British Columbia </option> <option value="Manitoba">Manitoba </option> <option value="New Brunswick">New Brunswick </option> <option value="Northwest Territories">Northwest Territories </option> <option value="Nova Scotia">Nova Scotia </option> <option value="Nunavut">Nunavut </option> <option value="Ontario">Ontario </option> <option value="Prince Edward Island">Prince Edward Island </option> <option value="Quebec">Quebec </option> <option value="Saskatchewan">Saskatchewan </option> <option value="Yukon">Yukon </option> </select> </td> </tr> <tr> <td class="text1"><strong>County:</strong></td> <td class="text1"><input name="txtCountry" value="<?=$rowGetProperty['vCountry']?>" type="text" id="txtCountry" size="35" maxlength="50" /></td> </tr> <tr> <td width="165" class="text1"><strong>Postal Code:<span class="text5">*†</span></strong> </p></td> <td width="320" class="text1"><input value="<?=$rowGetProperty['vPostCode']?>" name="txtZipcode" type="text" id="txtZipcode" size="15" maxlength="15" /></td> </tr> <tr> <td colspan="2" class="text4">**No ZIP+4 codes please.</td> </tr> <tr> <td colspan="2" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Listing Specs and Features</td> </tr> <tr> <td colspan="2"><table width="100%" border="0"> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td colspan="2"><strong class="text1">Style:</strong></td> <td class="text1"><strong># of Stories: </strong></td> <td class="text1"><input name="txtStory" value="<?=$rowGetProperty['vStories']?>" type="text" id="txtStory" size="5" maxlength="5" /></td> </tr> <tr> <td class="text1"><strong># of Floors:</strong></td> <td class="text1"><input name="txtFloors" value="<?=$rowGetProperty['vFloors']?>" type="text" id="txtFloors" size="5" maxlength="3" /></td> <td class="text1"><strong>Sq. Footage:</strong></td> <td class="text1"><input name="txtFootage" value="<?=$rowGetProperty['vFootage']?>" type="text" id="txtFootage" size="5" maxlength="5" /></td> </tr> <tr> <td class="text1"><strong># of Bedrooms:</strong></td> <td class="text1"><input name="txtBed" value="<?=$rowGetProperty['vBed']?>" type="text" id="txtBed" size="5" maxlength="3" /></td> <td class="text1"><strong>Lot Size/Acres:</strong></td> <td class="text1"><input name="txtSize" value="<?=$rowGetProperty['vLotSize']?>" type="text" id="txtSize" size="10" maxlength="10" /></td> </tr> <tr> <td class="text1"><strong># of Bathrooms:</strong></td> <td class="text1"><input type="text" value="<?=$rowGetProperty['vBath']?>" maxlength="5" size="5" name="txtBathrooms" /></td> <td class="text1"><strong>Garage Size: </strong></td> <td class="text1"><input name="txtGarage" value="<?=$rowGetProperty['vGarageSize']?>" type="text" id="txtGarage" size="10" maxlength="10" /></td> </tr> <tr> <td class="text1"><strong>Year Built (eg.1957):</strong></td> <td class="text1"><input name="txtBuilt" value="<?=$rowGetProperty['vYearBuilt']?>" type="text" id="txtBuilt" size="5" maxlength="4" /></td> <td class="text1"><strong>Zoning:</strong></td> <td class="text1"><input name="txtZoning" value="<?=$rowGetProperty['vZoning']?>" type="text" id="txtZoning" size="10" maxlength="10" /></td> </tr> <tr> <td colspan="4" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />School District:</td> </tr> <tr> <td colspan="2" class="text1"><strong>Primary :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vPrimary']?>" name="txtPrimary" type="text" id="txtPrimary" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Middle :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vMiddle']?>" name="txtMiddle" type="text" id="txtMiddle" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>High :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vHigh']?>" name="txtHigh" type="text" id="txtHigh" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>College:</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vCollege']?>" name="txtCollege" type="text" id="txtCollege" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Property Assessment </strong>:</td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vAssesment']?>" name="txtAssessment" type="text" id="txtAssessment" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Current Taxes :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vTax']?>" name="txtTax" type="text" id="txtTax" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Farmland / Woodland Accessed:</strong></td> <td colspan="2" class="text1"><input <? if($rowGetProperty['vFarmland'] == "Y"){?>checked="checked"<? }?> type="radio" name="rdWood" value="Y" /> YES <input <? if($rowGetProperty['vFarmland'] == "N"){?>checked="checked"<? }?> type="radio" name="rdWood" value="N" /> NO </td> </tr> <tr> <td colspan="2" class="text1"><strong>Heating Type :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vHeating']?>" name="txtHeating" type="text" id="txtHeating" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Fireplace Type (if applicable):</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vFireplace']?>" name="txtFireplace" type="text" id="txtFireplace" size="35" maxlength="155" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Oil Tank Location </strong>:</td> <td colspan="2" class="text1"><input <? if($rowGetProperty['vOil'] == "U"){?>checked="checked"<? }?> type="radio" name="rdUnder" value="U" />Underground<input <? if($rowGetProperty['vOil'] == "A"){?>checked="checked"<? }?> type="radio" name="rdUnder" value="A" />Above Ground </td> </tr> <tr> <td colspan="2" class="text1"><strong>Property Siding:</strong></td> <td colspan="2" class="text1"><input <? if($rowGetProperty['vVinylSiding'] == "Y"){?>checked="checked"<? }?> name="chkVinyl" type="checkbox" id="chkVinyl" value="Y" />Vinyl Siding<input name="chkPain" <? if($rowGetProperty['vPaintedWood'] == "Y"){?>checked="checked"<? }?> type="checkbox" id="chkPain" value="Y" />Painted Wood<input <? if($rowGetProperty['vLogs'] == "Y"){?>checked="checked"<? }?> name="chkLogo" type="checkbox" id="chkLogo" value="Y" />Logs </td> </tr> <tr> <td colspan="2" class="text1"><strong>Roof Condition :</strong></td> <td colspan="2" class="text1"><input type="radio" <? if($rowGetProperty['vRoofCon'] == "E"){?>checked="checked"<? }?> name="rdRoof" value="E" />Excellent<input type="radio" <? if($rowGetProperty['vRoofCon'] == "G"){?>checked="checked"<? }?> name="rdRoof" value="G" />Good<input type="radio" name="rdRoof" <? if($rowGetProperty['vRoofCon'] == "F"){?>checked="checked"<? }?> value="F" />Fair<input type="radio" <? if($rowGetProperty['vRoofCon'] == "P"){?>checked="checked"<? }?> name="rdRoof" value="P" />Poor</td> </tr> <tr> <td colspan="2" class="text1"><strong>Flooring :</strong></td> <td colspan="2" class="text1"><input value="<?=$rowGetProperty['vFlooring']?>" type="text" maxlength="155" size="35" name="txtFlooring" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Basement:</strong></td> <td colspan="2" class="text1"><input <? if($rowGetProperty['vBasement'] == "Y"){?>checked="checked"<? }?> type="radio" name="rdBasement" value="Y" /> YES <input type="radio" <? if($rowGetProperty['vBasement'] == "N"){?>checked="checked"<? }?> name="rdBasement" value="N" /> NO </td> </tr> <tr> <td colspan="4" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Appliances Included :</td> </tr> <tr> <td colspan="4" class="text1"><input name="chkOven" <? if($rowGetProperty['vOven'] == "Y"){?>checked="checked"<? }?> type="checkbox" id="chkOven" value="Y" />Oven<input <? if($rowGetProperty['vDishWasher'] == "Y"){?>checked="checked"<? }?> name="chkDish" type="checkbox" id="chkDish" value="Y" />Dishwasher<input <? if($rowGetProperty['vWashingMachine'] == "Y"){?>checked="checked"<? }?> name="chkWash" type="checkbox" id="chkWash" value="Y" />Washing Machine </td> </tr> <tr> <td colspan="4" class="text1"><input name="chkDrayer" <? if($rowGetProperty['vDryer'] == "Y"){?>checked="checked"<? }?> type="checkbox" id="chkDrayer" value="Y" />Dryer<input name="chkRef" <? if($rowGetProperty['vRefridgerator'] == "Y"){?>checked="checked"<? }?> type="checkbox" id="chkRef" value="Y" />Refridgerator</td> </tr> <tr> <td colspan="4" class="text1"><strong>Description/Additional Features (1,000 words or less):</strong></td> </tr> <tr> <td colspan="4" class="text1"><textarea name="txtDesc" cols="50" rows="10" id="txtDesc" ><?=$rowGetProperty['tAddFeature']?></textarea></td> </tr> <tr> <td colspan="4" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Open House Dates: (MM/DD/YYYY) </td> </tr> <tr> <td colspan="2" class="text1"><strong>Date:</strong></td> <td colspan="2" class="text1"><input name="txtYY1" value="<?=$rowGetProperty['vOpenHouuseDate1']?>" type="text" id="txtYY1" />Time: <input name="txtTime1" type="text" id="txtTime1" value="<?=$rowGetProperty['vOpenHouuseTime1']?>" size="10" /></td> </tr> <tr> <td colspan="2" class="text1"><strong>Date:</strong></td> <td colspan="2" class="text1"><input name="txtYY2" value="<?=$rowGetProperty['vOpenHouuseDate2']?>" type="text" id="txtYY2" />Time: <input name="txtTime2" type="text" value="<?=$rowGetProperty['vOpenHouuseTime2']?>" size="10" /></td> </tr> </table> </td> </tr> <? if($_GET['id'] == ""){?> <tr><td colspan="2" bgcolor="#CCCCCC" class="title2"><img src="images/bullet1.gif" width="8" height="8" hspace="5" />Enter Propery Photoes</td> </tr> <tr> <td class="text1"><strong>Photo 1:</strong></td> <td class="text1"><input type="file" name="photo_image1" value=""></td> </tr> <tr> <td class="text1"><strong>Photo 2:</strong></td> <td class="text1"><input type="file" name="photo_image2" value=""></td> </tr> <tr> <td class="text1"><strong>Photo 3:</strong></td> <td class="text1"><input type="file" name="photo_image3" value=""></td> </tr> <tr> <td class="text1"><strong>Photo 4:</strong></td> <td class="text1"><input type="file" name="photo_image4" value=""></td> </tr> <tr> <td class="text1"><strong>Photo 5:</strong></td> <td class="text1"><input type="file" name="photo_image5" value=""></td> </tr> <tr> <td class="text1"><strong>Photo 6:</strong></td> <td class="text1"><input type="file" name="photo_image6" value=""></td> </tr> <input type="hidden" name="do" value="save" /> <? $iPropertyID = $objGeneral -> getMaxId("tbl_property","iPropertyID");?> <input type="hidden" name="iPropertyID" value="<?=$iPropertyID?>" /> <tr class="text1"> <td colspan="2" align="center" class="text1"><input type="submit" name="btnSubmit" value="Add Property"></td> </tr> <? }else{?> <input type="hidden" name="do" value="update" /> <input type="hidden" name="pmtmode" value="<?=$rowGetProperty['vPmtStatus']?>" /> <input type="hidden" name="iPropertyID" value="<?=$_GET['id']?>" /> <tr class="text1"> <td colspan="2" align="center" class="text1"><input type="submit" name="btnSubmit" value="Save Property"></td> </tr> <? }?> </table> </td> </tr> </table> </form> <? }elseif($_POST['do'] == "save"){?> <? CheckError(); ?> <? if($_SESSION['flg']==0){ $objGeneral->deleteRow("tbl_property_temp","Session_id",$_SESSION['sessionvar']); $_SESSION['flg']=0; $_SESSION['msg']=""; $field = array("iPropertyID" => $_POST['iPropertyID'], "iUserID" => $_SESSION['login_id'], "vPckage" => $_POST['rdAccountType'], "vPropertyType" => $_POST['rdPropList'], "vAddress" => $_POST['txtAddress'], "vCity" => $_POST['txtCity'], "vUnit" => $_POST['txtUnit'], "vTown" => $_POST['txtTown'], "vState" => $_POST['selState'], "vCountry" => $_POST['txtCountry'], "vPostCode" => $_POST['txtZipcode'], "vStories" => $_POST['txtStory'], "vFloors" => $_POST['txtFloors'], "vFootage" => $_POST['txtFootage'], "vBed" => $_POST['txtBed'], "vBath" => $_POST['txtBathrooms'], "vLotSize" => $_POST['txtSize'], "vGarageSize" => $_POST['txtGarage'], "vYearBuilt" => $_POST['txtBuilt'], "vZoning" => $_POST['txtZoning'], "vPrimary" => $_POST['txtPrimary'], "vMiddle" => $_POST['txtMiddle'], "vHigh" => $_POST['txtHigh'], "vCollege" => $_POST['txtCollege'], "vAssesment" => $_POST['txtAssessment'], "vTax" => $_POST['txtTax'], "vFarmland" => $_POST['rdWood'], "vHeating" => $_POST['txtHeating'], "vFireplace" => $_POST['txtFireplace'], "vOil" => $_POST['rdUnder'], "vVinylSiding" => $_POST['chkVinyl'], "vPaintedWood" => $_POST['chkPain'], "vLogs" => $_POST['chkLogo'], "vRoofCon" => $_POST['rdRoof'], "vFlooring" => $_POST['txtFlooring'], "vBasement" => $_POST['rdBasement'], "vOven" => $_POST['chkOven'], "vWashingMachine" => $_POST['chkWash'], "vDishWasher" => $_POST['chkDish'], "vDryer" => $_POST['chkDrayer'], "vRefridgerator" => $_POST['chkRef'], "tAddFeature" => $_POST['txtDesc'], "vOpenHouuseDate1" => $_POST['txtYY1'], "vOpenHouuseTime1" => $_POST['txtTime1'], "vOpenHouuseDate2" => $_POST['txtYY2'], "vOpenHouuseTime2" => $_POST['txtTime2'], "vPrice" => $_POST['txtPrice'] ,"vPmtStatus" => "U","vPmtMode" => "O"); //print_r($field); $objGeneral->insTable("tbl_property", $field); $userf1 = $_FILES['photo_image1']['tmp_name']; $fname1 = $HTTP_POST_FILES['photo_image1']['name']; if($fname1 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name1 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name1, $userf1, $file_name1); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name1); $objGeneral->insTable("photo_master",$field); } $userf2 = $_FILES['photo_image2']['tmp_name']; $fname2 = $HTTP_POST_FILES['photo_image2']['name']; if($fname2 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name2 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name2, $userf2, $file_name2); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name2); $objGeneral->insTable("photo_master",$field); } $userf3 = $_FILES['photo_image3']['tmp_name']; $fname3 = $HTTP_POST_FILES['photo_image3']['name']; if($fname3 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name3 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name3, $userf3, $file_name3); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name3); $objGeneral->insTable("photo_master",$field); } $userf4 = $_FILES['photo_image4']['tmp_name']; $fname4 = $HTTP_POST_FILES['photo_image4']['name']; if($fname4 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name4 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name4, $userf4, $file_name4); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name4); $objGeneral->insTable("photo_master",$field); } $userf5 = $_FILES['photo_image5']['tmp_name']; $fname5 = $HTTP_POST_FILES['photo_image5']['name']; if($fname5 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name5 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name5, $userf5, $file_name5); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name5); $objGeneral->insTable("photo_master",$field); } $userf6 = $_FILES['photo_image6']['tmp_name']; $fname6 = $HTTP_POST_FILES['photo_image6']['name']; if($fname6 <> "") { $iPhotoID = $objGeneral -> getMaxId("photo_master","iPhotoID"); $file_name6 = "photo_".$_POST['iPropertyID']."_".$iPhotoID.".jpg"; $objGeneral->uploadfile("property_photo/", $file_name6, $userf6, $file_name6); $field = array("iPhotoID"=>$iPhotoID, "iPropertyID" => $_POST['iPropertyID'], "vFileName"=>$file_name6); $objGeneral->insTable("photo_master",$field); } $_SESSION['iPropertyID'] = $_POST['iPropertyID']; if($_POST['rdAccountType'] == "y") { $_SESSION['price'] = '149.99'; } else{ $_SESSION['price'] = '19.95'; } echo "\n<meta http-equiv=\"refresh\""." content=\"0;url=https://fsbototalaccess.com/payment_information.php\">\n"; ?> <? } //end of flg condition else{ $objGeneral->deleteRow("tbl_property_temp","Session_id",$_SESSION['sessionvar']); $field = array("Session_ID" => $_SESSION['sessionvar'], "vPckage" => $_POST['rdAccountType'], "vPropertyType" => $_POST['rdPropList'], "vAddress" => $_POST['txtAddress'], "vCity" => $_POST['txtCity'], "vUnit" => $_POST['txtUnit'], "vTown" => $_POST['txtTown'], "vState" => $_POST['selState'], "vCountry" => $_POST['txtCountry'], "vPostCode" => $_POST['txtZipcode'], "vStories" => $_POST['txtStory'], "vFloors" => $_POST['txtFloors'], "vFootage" => $_POST['txtFootage'], "vBed" => $_POST['txtBed'], "vBath" => $_POST['txtBathrooms'], "vLotSize" => $_POST['txtSize'], "vGarageSize" => $_POST['txtGarage'], "vYearBuilt" => $_POST['txtBuilt'], "vZoning" => $_POST['txtZoning'], "vPrimary" => $_POST['txtPrimary'], "vMiddle" => $_POST['txtMiddle'], "vHigh" => $_POST['txtHigh'], "vCollege" => $_POST['txtCollege'], "vAssesment" => $_POST['txtAssessment'], "vTax" => $_POST['txtTax'], "vFarmland" => $_POST['rdWood'], "vHeating" => $_POST['txtHeating'], "vFireplace" => $_POST['txtFireplace'], "vOil" => $_POST['rdUnder'], "vVinylSiding" => $_POST['chkVinyl'], "vPaintedWood" => $_POST['chkPain'], "vLogs" => $_POST['chkLogo'], "vRoofCon" => $_POST['rdRoof'], "vFlooring" => $_POST['txtFlooring'], "vBasement" => $_POST['rdBasement'], "vOven" => $_POST['chkOven'], "vWashingMachine" => $_POST['chkWash'], "vDishWasher" => $_POST['chkDish'], "vDryer" => $_POST['chkDrayer'], "vRefridgerator" => $_POST['chkRef'], "tAddFeature" => $_POST['txtDesc'], "vOpenHouuseDate1" => $_POST['txtYY1'], "vOpenHouuseTime1" => $_POST['txtTime1'], "vOpenHouuseDate2" => $_POST['txtYY2'], "vOpenHouuseTime2" => $_POST['txtTime2'], "vPrice" => $_POST['txtPrice'] ,"vPmtStatus" => "U","vPmtMode" => "O"); //print_r($field); $objGeneral->insTable("tbl_property_temp", $field); //echo "data is inserted"; echo "\n<meta http-equiv=\"refresh\""." content=\"0;url=add_property.php?\">\n"; } ?> </table> <? }elseif($_POST['do'] == "update"){?> <? $field = array("vPckage" => $_POST['rdAccountType'], "vPropertyType" => $_POST['rdPropList'], "vAddress" => $_POST['txtAddress'], "vCity" => $_POST['txtCity'], "vUnit" => $_POST['txtUnit'], "vTown" => $_POST['txtTown'], "vState" => $_POST['selState'], "vCountry" => $_POST['txtCountry'], "vPostCode" => $_POST['txtZipcode'], "vStories" => $_POST['txtStory'], "vFloors" => $_POST['txtFloors'], "vFootage" => $_POST['txtFootage'], "vBed" => $_POST['txtBed'], "vBath" => $_POST['txtBathrooms'], "vLotSize" => $_POST['txtSize'], "vGarageSize" => $_POST['txtGarage'], "vYearBuilt" => $_POST['txtBuilt'], "vZoning" => $_POST['txtZoning'], "vPrimary" => $_POST['txtPrimary'], "vMiddle" => $_POST['txtMiddle'], "vHigh" => $_POST['txtHigh'], "vCollege" => $_POST['txtCollege'], "vAssesment" => $_POST['txtAssessment'], "vTax" => $_POST['txtTax'], "vFarmland" => $_POST['rdWood'], "vHeating" => $_POST['txtHeating'], "vFireplace" => $_POST['txtFireplace'], "vOil" => $_POST['rdUnder'], "vVinylSiding" => $_POST['chkVinyl'], "vPaintedWood" => $_POST['chkPain'], "vLogs" => $_POST['chkLogo'], "vRoofCon" => $_POST['rdRoof'], "vFlooring" => $_POST['txtFlooring'], "vBasement" => $_POST['rdBasement'], "vOven" => $_POST['chkOven'], "vWashingMachine" => $_POST['chkWash'], "vDishWasher" => $_POST['chkDish'], "vDryer" => $_POST['chkDrayer'], "vRefridgerator" => $_POST['chkRef'], "tAddFeature" => $_POST['txtDesc'], "vOpenHouuseDate1" => $_POST['txtYY1'], "vOpenHouuseTime1" => $_POST['txtTime1'], "vOpenHouuseDate2" => $_POST['txtYY2'], "vOpenHouuseTime2" => $_POST['txtTime2'], "vPrice" => $_POST['txtPrice']); //print_r($field); $objGeneral->updTable("tbl_property", $field, "iPropertyID" ,$_POST['iPropertyID']); if($_POST['pmtmode']=="U") { $_SESSION['iPropertyID'] = $_POST['iPropertyID']; if($_POST['rdAccountType'] == "y") { $_SESSION['price'] = '149.99'; } else{ $_SESSION['price'] = '19.95'; } echo "\n<meta http-equiv=\"refresh\""." content=\"0;url=https://fsbototalaccess.com/payment_information.php\">\n"; }else{ ?> <table align="center"> <tr><td class="text4">You have succeesfully Edited your Property</td> </tr> </table> <? } ?> <? } ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> <? include "footer.php"?>
  6. thanks for you replay ... pls add property by going to my account link and feel the details and click on next link you will get the page. And if you have yhaoo or gmail or any other IM pls let me know so we can talk there. My IM id for yahoo and msn are opaloutsource@yahoo.com and opaloutsource@hotmail.com. Pls add me or give me your so we can talk online
  7. For all the http session is working ...but when i enter in to the https it is not. i have uplaoded that website on other server and it is working more smoothtransition over there. so no coding error but my question is wheather the problem will due to the server side valedation.???
  8. sorry username is :kalpit@ekmatrics.com password is : kalpit1
  9. Pls help me as soon as possible. this is seriously an issue. if you can help me i would be glad to you
  10. I have very serious problem regarding the session. it is working on my computer and when i send it to client he keeps coming back to me by saying that i am keep login out . i am giving here the URL and pls try by your self by registering your self and then enter your username password and add the property . you will redirect to the paymant information page. here the problem arise that we can see tha page and client keeps login out. for your referance i can hive you username password you can use that also for login. http://www.fsbototalaccess.com/ UserID: kalpit@ekmatrics.com Password:kalpit1 i think problem with the i am entering into secure mode means hrrp to https. 2nd Problem the other problem you find is the transection problem it is taking too much time to redirect as i am doing server side validation. is it the one of the reason? or there is problem to the server speed?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.