Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (44 sloc) 1.477 kB
<?php
/*********************
05-06-2003 v3.01
Module: Housing
Description: 2nd stage of housing remove
To Do: declare POST vars
*********************/
$modid = 3;
$intro_id = 19;
include("AMP/BaseDB.php");
include("AMP/BaseTemplate.php");
include("AMP/BaseModuleIntro.php");
if (isset($_POST["MM_update"]) && (isset($_POST["MM_recordId"]))) {
$MM_editTable = "housing";
$MM_editColumn = "id";
$MM_recordId = intval( $_POST["MM_recordId"] );
$MM_editRedirectUrl = "housing.php";
$MM_fieldsStr = "publish|value";
$MM_columnsStr = "publish|none,none,NULL";
require ("DBConnections/insetstuff.php");
require ("DBConnections/dataactions.php");
}
$called__MMColParam = "1";
if (isset($_GET["email"])){
$called__MMColParam = $_GET["email"];
}
$called=$dbcon->Execute("SELECT * FROM housing WHERE email = " . $dbcon->qstr($called__MMColParam) );
if( $called ) {
?>
<form ACTION="<?php echo $MM_editAction?>" METHOD="POST" name="form1">
<?php echo $called->Fields("firstname")?>
&nbsp;
<?php echo $called->Fields("lastname")?>
&nbsp;
<?php echo $called->Fields("email")?>
<input type="submit" name="Submit" value="Remove">
<input type="hidden" name="publish" value="0">
<input type="hidden" name="MM_update" value="true">
<input type="hidden" name="MM_recordId" value="<?php echo $called->Fields("id") ?>">
</form>
<?php
}
include("AMP/BaseFooter.php");
?>
Jump to Line
Something went wrong with that request. Please try again.