function getURL() { if (!$this->isLive()) { return false; } return '' . AMP_url_add_vars(AMP_CONTENT_URL_FORM_DISPLAY, array('modin=' . $this->getModin(), 'uid=' . $this->id)); }
function getURL() { if (!$this->id) { return AMP_CONTENT_URL_ACTION; } return AMP_url_add_vars(AMP_CONTENT_URL_ACTION, 'action=' . $this->id); }
function _preview_url($section) { $base_url = $section->getURL_default(); if (AMP_CONTENT_HUMANIZE_URLS) { $base_url = '/' . AMP_route_for('section', $section->id); } return AMP_url_add_vars(AmpUtility::current_host() . $base_url, array('preview=1', 'cache=0')); }
function _makeIcon($image) { if (!$image) { return false; } $image_url = AMP_url_add_vars(AMP_CONTENT_URL_IMAGE, array('action=resize', 'class=thumb', 'filename=' . $image->getName(), 'width=' . $this->_image_width)); return $this->_renderer->image($image_url, $this->_image_attr); }
function commit_megaupload() { $renderer = AMP_get_renderer(); $buffer = new AMP_Content_Buffer(); $buffer->add($renderer->newline(2) . $renderer->link("javascript:showPopup( '" . AMP_url_add_vars("file_uploader.php", array('doctype=img')) . "' );", AMP_TEXT_UPLOAD . $renderer->space() . AMP_TEXT_FILE) . $renderer->newline(2)); $this->_display->add($buffer); return true; }
function render_image($source) { if (!($image = $source->getImageRef())) { return false; } $image_url = AMP_url_add_vars(AMP_CONTENT_URL_IMAGE, array('filename=' . $image->getName(), 'class=' . AMP_IMAGE_CLASS_THUMB, 'height=30', 'action=resize')); return $this->_renderer->image($image_url, $this->_image_attr); }
function onSave(&$controller) { $form = $controller->get_form(); $values = $form->getValues(); if (isset($values['list_form_id']) && $values['list_form_id']) { ampredirect(AMP_url_add_vars(AMP_SYSTEM_URL_TOOL_PUBLICPAGE, array('modid=' . $values['modid']))); } }
function __construct() { $name = 'AMP_System_UserData_ImportForm'; $this->init($name, 'POST', AMP_url_add_vars(AMP_SYSTEM_URL_FORMS, 'action=import')); $this->_init_request(); $this->_init_import_file(); $this->_init_fields(); }
function _formFooter() { if (isset($_REQUEST['id']) || isset($_REQUEST['file'])) { return false; } require_once 'AMP/Content/Display/HTML.inc.php'; $renderer = new AMPDisplay_HTML(); return $renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_IMAGES, 'action=megaupload'), 'Alternate upload page'); }
function _makeOwnerLink($data, $fieldname) { if (!(isset($data['uid']) && $data['uid'])) { return; } $renderer = AMP_get_renderer(); $owner_field = $this->_owner_link_def; $owner_field['default'] = $renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_FORM_ENTRY, array('id=' . $data['uid'])), $owner_field['default']); $this->addField($owner_field, 'owner_link'); }
function setTool($tool_id) { $forms_list = AMP_lookup('formsByTool'); $url_vars = array('tool_id=' . $tool_id); if (isset($forms_list[$tool_id])) { $url_vars[] = 'form_id=' . $forms_list[$tool_id]; } $this->_url_add = AMP_url_add_vars(AMP_SYSTEM_URL_PUBLIC_PAGE_ADD, $url_vars); $this->editlink = AMP_url_add_vars($this->editlink, $url_vars); $this->addCriteria('modid=' . $tool_id); }
function _render_permission_link(&$source) { $permission_id = $source->getPermission(); $permission_name = $this->lookup($permission_id, 'permission'); if ($permission_name == $permission_id) { return $permission_name; } $url = AMP_url_add_vars(AMP_SYSTEM_URL_PERMISSION_GROUP, array('id=' . $permission_id)); $renderer = AMP_get_renderer(); return $renderer->link($url, $permission_name); }
function _getUrlEdit($row_data) { if (isset($this->_saved_edit_urls[$row_data['id']])) { return $this->_saved_edit_urls[$row_data['id']]; } $source =& $this->source[$this->_source_keys[$this->_source_counter]]; $uid = $source ? $source->getOwner() : false; if ($this->editlink_uid && $uid) { $editlink = isset($this->_url_edit) ? $this->_url_edit : $this->editlink; $value = AMP_url_add_vars(AMP_SYSTEM_URL_FORM_ENTRY, array("uid=" . $uid)); } else { $value = parent::_getUrlEdit($row_data); } $this->_saved_edit_urls[$row_data['id']] = $value; return $value; }
function execute($options = array()) { $options = array_merge($this->getOptions(), $options); if (!isset($options['_userid'])) { return false; } $uid = $options['_userid']; $alias_url[] = AMP_url_add_vars(AMP_CONTENT_URL_FORM_DISPLAY, array('modin=' . $this->udm->instance, 'uid=' . $uid)); $alias_url[] = AMP_url_add_vars('userdata_display.php', array('modin=' . $this->udm->instance, 'uid=' . $uid)); require_once 'AMP/Content/Redirect/List.inc.php'; $tag_list = new AMP_Content_Redirect_List(AMP_Registry::getDbcon(), array('target' => $alias_url)); $tag_list->drop_column('select'); $tag_list->suppress('form'); $tag_list->suppress('footer'); $tag_list->suppress('messages'); /* $tag_list->suppressToolbar( ); $tag_list->suppressAddlink( ); $tag_list->suppressMessages( ); */ $this->udm->fields[$this->addPrefix('redirect_list_public')]['values'] = $this->inForm($tag_list->execute()); }
function _init_criteria($criteria) { if (isset($criteria['modid']) && ($tool_id = $criteria['modid'])) { $this->_url_add = AMP_url_add_vars(AMP_SYSTEM_URL_NAV_ADD, array('tool_id=' . $tool_id)); } }
function render_sort_link($text, $sort_to_request) { if ($this->_suppress_sort_links) { return $text; } if (!$this->validate_sort_link($sort_to_request)) { return $text; } $url_values = $_GET; $url_values['sort'] = $sort_to_request; unset($url_values['sort_direction']); if (isset($this->_sort) && $this->_sort == $sort_to_request && !(isset($this->_sort_direction) && $this->_sort_direction == AMP_SORT_DESC)) { $url_values['sort_direction'] = AMP_SORT_DESC; } return $this->_renderer->link(AMP_url_add_vars($_SERVER['PHP_SELF'], AMP_url_build_query($url_values)), $text); }
function _initCopier() { require_once 'AMP/Content/Nav/Location/Form.inc.php'; $form =& new AMP_Content_Nav_Location_Form(); $form->_getValueSet('navid'); $form->_getValueSet('position'); // $form->_getValueSet( 'badge_id'); $copier_fields = array('position' => $form->getField('position'), 'navid' => $form->getField('navid'), 'id' => array('type' => 'hidden')); foreach ($copier_fields as $key => $field_def) { unset($copier_fields[$key]['label']); } $this->_copier =& ElementCopierScript::instance(); $this->_copier->addControl('edit', array('type' => 'button', 'action' => 'window.open( "' . AMP_url_add_vars(AMP_SYSTEM_URL_NAV, 'id=') . '"+window.' . $this->copier_name . '.GetCurrentValue(this, "' . $this->copier_name . '_navid" ));', 'label' => AMP_TEXT_EDIT)); $this->_copier->addCopier($this->copier_name, $copier_fields, $this->formname); $this->_copier->setSingleRow(true, $this->copier_name); $this->_copier->setLabelColumn(false, $this->copier_name); $this->_copier->setRowOffset("0", $this->copier_name); $this->_copier->setFormTable($this->_css_id_container_table, $this->copier_name); $this->_copier->setElementClass('system_list_input', $this->copier_name); if (!empty($_POST)) { $this->_copier->addSets($this->copier_name, $_POST); } //$header = &_getHeader( ); //$header->addJavascriptDynamic( $this->_copier->output( ), 'copier' ); }
<input type="text" name="email" size="40"> </div> </div> </td> </tr> <tr> <td class="form"></td><td> <br /> <div align="left"> First, enter the code from the image below <span class='red'><font color = 'red'><?php print $GLOBALS['captcha_message']; ?> </font></span><BR /> <img src='<?php print AMP_url_add_vars(AMP_CONTENT_URL_CAPTCHA, array('key=' . AMP_SYSTEM_UNIQUE_VISITOR_ID)); ?> '/> <div align="left"> <p> <input name="captcha" type="text" id="captcha" size="8"/> <input name='AMP_SYSTEM_UNIQUE_VISITOR_ID' type='hidden' value='<?php print AMP_SYSTEM_UNIQUE_VISITOR_ID; ?> '/> </p> </td> </tr> <tr> <td class="form">
<?php require_once 'AMP/System/Base.php'; $url = AMP_SYSTEM_URL_PUBLIC_PAGE_ADD; if (isset($_GET['id']) && $_GET['id']) { $url = AMP_url_add_vars(AMP_SYSTEM_URL_PUBLIC_PAGE, array('id=' . $_GET['id'])); } if (isset($_GET['tool_id']) && $_GET['tool_id']) { $url = AMP_url_add_vars(AMP_SYSTEM_URL_PUBLIC_PAGE_ADD, array('tool_id=' . $_GET['tool_id'])); } ampredirect($url); /* require_once( 'AMP/Content/Nav/ComponentMap.inc.php'); require_once( 'AMP/System/Page.inc.php'); $map = new ComponentMap_Nav( ); $systemPage = new AMPSystem_Page( $dbcon, $map ); if (isset($_GET['action']) && $_GET['action'] == "list") $systemPage->showList( true ); // allow default to link to referring module if (isset( $_GET[ 'tool_id' ]) && ($tool_id = $_GET[ 'tool_id' ])) { $systemPage->addCallback( 'form', 'setDefaultValue', array( 'modid', $tool_id )); } $systemPage->execute( ); print $systemPage->output( ); */
function render_preview($source) { if (!method_exists($source, 'getURL')) { return false; } $url = $source->getURL(); if (!$url) { return false; } if (substr($url, 0, 7) != 'http://' && substr($url, 0, 1) != '/') { $url = '/' . $url; } return $this->_renderer->link(AMP_url_add_vars($url, array('preview=1')), $this->_renderer->image(AMP_SYSTEM_ICON_PREVIEW, array('class' => 'icon')), array('target' => '_blank', 'title' => AMP_TEXT_PREVIEW_ITEM)); }
function render_field_captcha($name, $field_def) { return $this->format_field($this->_renderer->div('', array('class' => 'label')) . $this->_renderer->div($this->_renderer->image(AMP_url_add_vars(AMP_CONTENT_URL_CAPTCHA, array('key=' . AMP_SYSTEM_UNIQUE_VISITOR_ID)), array('align' => 'center')), array('class' => 'element')), 'captcha_image') . $this->format_field_delimiter() . $this->render_field_default($name, $field_def); }
function get_url_edit() { return AMP_url_add_vars(AMP_SYSTEM_URL_CUSTOM_FILE, array('id=' . $this->id)); }
function _formFooter() { $renderer = AMP_get_renderer(); return $renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_GALLERY_IMAGE, array('action=clear_bookmark')), sprintf(AMP_TEXT_VIEW_ALL, ucfirst(AMP_pluralize(AMP_TEXT_IMAGE)))) . join($renderer->newline(), $this->_preview_links); }
function get_url_edit() { if (!$this->id) { return false; } return AMP_url_add_vars(AMP_SYSTEM_URL_BADGE, "id=" . $this->id); }
function AMP_route_for($type, $id, $options = array()) { $route = AMP_url_update(constant(strtoupper("AMP_CONTENT_URL_{$type}")), array('id' => $id)); if (empty($options)) { return $route; } if (isset($options['preview']) && $options['preview']) { #if( strpos( $route,'.php')) { return AMP_url_add_vars($route, array('preview=1', 'cache=0')); #} } return $route; }
<?php /********************* 07-02-2003 v3.01 Module: email Description: email subscription form CSS: text, form VARS: $studenton = displays the student box $send = sends a link to edit the subscriptions To Do: declare post vars insert into contacts database *********************/ // $mod_id = 20; $modid = 9; include "AMP/BaseDB.php"; require_once 'AMP/Content/Redirect/Redirect.php'; $redirect = new AMP_Content_Redirect(AMP_Registry::getDbcon()); $target_set = $redirect->find(array('alias' => 'email')); if ($target_set) { $source = current($target_set); $new_url = $source->getTarget(); } else { $new_url = AMP_url_add_vars(AMP_CONTENT_URL_FORM, array('modin=3')); } ampredirect($new_url);
function render_content_view($source) { return $this->_renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_ARTICLE, array('section=' . $source->id)), $this->_renderer->image(AMP_SYSTEM_ICON_VIEW, array('width' => 16, 'height' => 16, 'border' => '0')), array('title' => AMP_TEXT_CONTENT_PAGES)); }
function get_url_edit() { return AMP_url_add_vars(AMP_SYSTEM_URL_NAV_LAYOUT, array('id=' . $this->id)); }
} #set_error_handler( 'e' ); $modin = isset($_REQUEST['modin']) && $_REQUEST['modin'] ? $_REQUEST['modin'] : false; if ($uid && !$modin) { //look up the modin via uid require_once 'AMP/System/User/Profile/Profile.php'; $profile = new AMP_System_User_Profile(AMP_Registry::getDbcon(), $uid); if ($profile->hasData() && ($modin = $profile->getModin())) { //redirect to the standard URL $url_vars = AMP_URL_Values(); if (!$url_vars) { $url_vars = array(); } $url_vars = array_merge($url_vars, array('uid' => 'uid=' . $uid, 'modin' => 'modin=' . $modin)); unset($url_vars['id']); ampredirect(AMP_url_add_vars(AMP_SYSTEM_URL_FORM_ENTRY, $url_vars)); } } if ($modin) { $form_id_nav = $modin; $form_permissions =& AMPSystem_Lookup::instance('PermissionsbyForm'); $tools = AMP_lookup('ToolsbyForm'); $modin_permission = isset($form_permissions[$modin]) && $form_permissions[$modin] ? $form_permissions[$modin] : false; //$modidselect=$dbcon->GetRow("SELECT id, perid from modules where userdatamodid=" . $modin) or DIE($dbcon->ErrorMsg()); //$modid=$modidselect['id']; $modid = isset($tools[$modin]) && $tools[$modin] ? $tools[$modin] : false; } else { ampredirect("modinput4_list.php"); } $admin = AMP_Authorized(AMP_PERMISSION_FORM_DATA_EDIT) && AMP_Authorized($modin_permission); // Fetch the form instance specified by submitted modin value.
function buildactionform($id, $error = NULL) { global $dbcon; $act = $dbcon->Execute("SELECT * FROM action_text WHERE id = " . $dbcon->qstr($id) . " and actiontype != 'Congress Merge'"); if ($act) { ?> <p class="title"><?php echo $act->Fields("title"); ?> </p> <p class="text"><?php echo converttext($act->Fields("introtext")); ?> </p> <?php echo $error; ?> <script language="Javascript" type="text/javascript"> var fieldstocheck = new Array(); fieldnames = new Array(); function checkform() { for (i=0;i<fieldstocheck.length;i++) { if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { alert("Please enter your "+fieldnames[i]); eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); return false; } } return true; } function addFieldToCheck(value,name) { fieldstocheck[fieldstocheck.length] = value; fieldnames[fieldnames.length] = name; } </script> <form method="POST" name="subscribeform" class="form" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <script language="Javascript" type="text/javascript"> addFieldToCheck("First_Name","First Name"); </script> <input type="hidden" name="actionid" value="<?php echo $act->Fields("id"); ?> "> <input type="hidden" name="MM_insert" value="true"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td width="50%" valign="top"><h3>Read and Edit the Letter</h3></td> <td width="20"> </td> <td width="50%"><h3>Send the Message</h3></td> </tr> <tr> <td width="31%" valign="top"><TABLE width=250 cellpadding=0 cellspacing=0> <TR> <!-- PREVIEW LETTER --> <TD valign="top"> </TD> </TR> </TABLE> <center> <TABLE CELLPADDING="2" CELLSPACING="2" bgcolor="#E1E1E1"> <tr> <td valign="top"> Subject:<BR> <input type="text" name="subjectText" size="42" style="width:225px" value="<?php if ($_POST['subjectText']) { echo $_POST['subjectText']; } else { echo $act->Fields("subject"); } ?> " > <br></i> <br> Dear <?php echo $act->Fields("prefix"); ?> <?php echo $act->Fields("firstname"); ?> <?php echo $act->Fields("lastname"); ?> ,<br> <br> <textarea name="Letter_Content" rows="22" cols="53" wrap="soft" style="width:250px"><?php if ($_POST['Letter_Content']) { echo $_POST['Letter_Content']; } else { echo $act->Fields("text"); } ?> </textarea> <br> Sincerely,<br> <br> <i>Your signature will be added from the information you provide below.</i></td> </tr> </TABLE> </center></td> <td width="19%" valign="top"> </td> <td width="50%" valign="top"> <center> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td colspan="2" valign="top" class="form"><TABLE cellpadding=0 cellspacing=0> <tr> <td> <div align="left"> First, enter the code from the image below <span class='red'><font color = 'red'><?php print $GLOBALS['captcha_message']; ?> </font></span><BR /> <img src='<?php print AMP_url_add_vars(AMP_CONTENT_URL_CAPTCHA, array('key=' . AMP_SYSTEM_UNIQUE_VISITOR_ID)); ?> '/> </div></td> </tr> <tr> <td> <div align="left"> <p> <input name="captcha" type="text" id="captcha" size="8"/> <input name='AMP_SYSTEM_UNIQUE_VISITOR_ID' type='hidden' value='<?php print AMP_SYSTEM_UNIQUE_VISITOR_ID; ?> '/> </p> </div></td> </tr> <tr> <td> <B>Already Taken Action? <br> Just Enter Your Email and Send:</B> </td> </tr> <tr> <td> <table> <tr> <td>Email: <input type="text" maxlength="99" name="old_EmailAddress" size="20" style="width:140px"></td> <td><input type="submit" class="submit" name="Submit2" value="Send"></td> </tr> <tr> <td> <?php if ($act->Fields("email")) { ?> <INPUT type="checkbox" NAME="'Send_Email'" checked> <span class="form">Send an Email</span> <?php } ?> <?php if ($act->Fields("fax")) { ?> <INPUT type="checkbox" NAME="Send_Fax" checked > <span class="form">Send a Fax</span> <?php } ?> </td> </tr> </table> </td> </tr> </TABLE></td> </tr> <tr> <td colspan="2" valign="top" class="form"><div align="left"><br> <!-- First Time Taking Action? <br> Please fill out the fields below<br> --> <b>All fields below are required</b><br> </div></td> </tr> <tr> <td valign="top"><div align="right">E-Mail: </div></td> <td> <input name="Email" type="text" size="35" value="<?php echo $_POST["Email"]; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">Title: </div></td> <td> <select name="Title" size="1" > <?php if ($_POST['Title']) { echo "<option>" . $_POST['Title'] . "</option>"; } ?> <option value=""SELECTED>Select Title <option value="Mr." >Mr. <option value="Ms." >Ms. <option value="Mrs." >Mrs. <option value="Miss" >Miss <option value="Dr." >Dr. <option value="Rabbi" >Rabbi <option value="Fr." >Fr. <option value="Rev." >Rev. <option value="Hon." >Hon. <option value="Br." >Br. <option value="Sr." >Sr. <option value="Msr." >Msr. </select> </td> </tr> <tr> <td valign="top"><div align="right"><nobr>First Name: </nobr></div></td> <td> <input name="First_Name" type="text" size="35" value="<?php echo $_POST['First_Name']; ?> " style="width:160px"> </td> </tr> <tr> <td valign="top"><div align="right"><nobr>Last Name: </nobr></div></td> <td> <input name="Last_Name" type="text" size="35" value="<?php echo $_POST['Last_Name']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">Address: </div></td> <td> <input name="Street" type="text" size="35" value="<?php echo $_POST['Street']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right"></div></td> <td> <input name="Street_2" type="text" size="35" value="<?php echo $_POST['Street_2']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">City: </div></td> <td> <input name="City" type="text" size="35" value="<?php echo $_POST['City']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">State: </div></td> <td><nobr> <select TABINDEX=7 name="State" size="1"> <?php if ($_POST['State']) { echo "<option>" . $_POST['State'] . "</option>"; } ?> <OPTION VALUE="">Select One...</option> <OPTION VALUE="AL" >Alabama</OPTION> <OPTION VALUE="AK" >Alaska</OPTION> <OPTION VALUE="AZ" >Arizona</OPTION> <OPTION VALUE="AR" >Arkansas</OPTION> <OPTION VALUE="CA" >California</OPTION> <OPTION VALUE="CO" >Colorado</OPTION> <OPTION VALUE="CT" >Connecticut</OPTION> <OPTION VALUE="DE" >Delaware</OPTION> <OPTION VALUE="DC" >D.C.</OPTION> <OPTION VALUE="FL" >Florida</OPTION> <OPTION VALUE="GA" >Georgia</OPTION> <OPTION VALUE="HI" >Hawaii</OPTION> <OPTION VALUE="ID" >Idaho</OPTION> <OPTION VALUE="IL" >Illinois</OPTION> <OPTION VALUE="IN" >Indiana</OPTION> <OPTION VALUE="IA" >Iowa</OPTION> <OPTION VALUE="KS" >Kansas</OPTION> <OPTION VALUE="KY" >Kentucky</OPTION> <OPTION VALUE="LA" >Louisiana</OPTION> <OPTION VALUE="ME" >Maine</OPTION> <OPTION VALUE="MD" >Maryland</OPTION> <OPTION VALUE="MA" >Massachusetts</OPTION> <OPTION VALUE="MI" >Michigan</OPTION> <OPTION VALUE="MN" >Minnesota</OPTION> <OPTION VALUE="MS" >Mississippi</OPTION> <OPTION VALUE="MO" >Missouri</OPTION> <OPTION VALUE="MT" >Montana</OPTION> <OPTION VALUE="NE" >Nebraska</OPTION> <OPTION VALUE="NV" >Nevada</OPTION> <OPTION VALUE="NH" >New Hampshire</OPTION> <OPTION VALUE="NJ" >New Jersey</OPTION> <OPTION VALUE="NM" >New Mexico</OPTION> <OPTION VALUE="NY" >New York</OPTION> <OPTION VALUE="NC" >North Carolina</OPTION> <OPTION VALUE="ND" >North Dakota</OPTION> <OPTION VALUE="OH" >Ohio</OPTION> <OPTION VALUE="OK" >Oklahoma</OPTION> <OPTION VALUE="OR" >Oregon</OPTION> <OPTION VALUE="PA" >Pennsylvania</OPTION> <OPTION VALUE="RI" >Rhode Island</OPTION> <OPTION VALUE="SC" >South Carolina</OPTION> <OPTION VALUE="SD" >South Dakota</OPTION> <OPTION VALUE="TN" >Tennessee</OPTION> <OPTION VALUE="TX" >Texas</OPTION> <OPTION VALUE="UT" >Utah</OPTION> <OPTION VALUE="VT" >Vermont</OPTION> <OPTION VALUE="VA" >Virginia</OPTION> <OPTION VALUE="WA" >Washington</OPTION> <OPTION VALUE="WV" >West Virginia</OPTION> <OPTION VALUE="WI" >Wisconsin</OPTION> <OPTION VALUE="WY" >Wyoming</OPTION> <OPTION VALUE="">Other</OPTION> </SELECT> <input name="State2" type="text" size="10" value="<?php echo $_POST['State2']; ?> " style="width:30px"></nobr> </td> </tr> <tr> <td valign="top"><div align="right">Zip: </div></td> <td> <input name="Zip" type="text" size="35" value="<?php echo $_POST['Zip']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">Country: </div></td> <td> <input name="Country" type="text" id="Country" value="<?php echo $_POST['Country']; ?> " size="35" style="width:165px"> </td> </tr> <tr> <td valign="top"><div align="right">Phone: </div></td> <td> <input name="Phone" type="text" id="Phone" size="35" value="<?php echo $_POST['Phone']; ?> " style="width:165px"> </td> </tr> <tr> <td valign="top"> </td> <td> </td> </tr> <tr> <?php if ($act->Fields("uselist")) { ?> <td colspan="2" valign="top" class="form"><input type="checkbox" name="list1" checked value="<?php echo $act->Fields("list1"); ?> "> <input type="hidden" name="list2" value="<?php echo $act->Fields("list2"); ?> "> <input type="hidden" name="list3" value="<?php echo $act->Fields("list3"); ?> "> <input type="hidden" name="list4" value="<?php echo $act->Fields("list4"); ?> "> Keep me informed about this and other related campaigns</td> </tr> <?php } ?> </table> </center></td> </tr> <tr> <td colspan="3" valign="top"><center> <input type="submit" class="submit" name="Submit" value="Send My Message!" onClick="return checkform();"> </center></td> </tr> </table> <p> </p> </form> <?php } }