Jump to content

Arsenal

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

About Arsenal

  • Birthday 08/19/1986

Contact Methods

  • AIM
    Eisen Mustang
  • MSN
    Arsenal
  • Website URL
    http://www.endurofusion.net/

Profile Information

  • Gender
    Not Telling

Arsenal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My goal is to make it so if the check box is checked, the page continues as normal. If the checkbox is not checked, then the page is redirected. I don't get any syntax errors but the code does not do what it is intended. What am I missing? <script language="JavaScript"> function check_agreement(){ if(document.getElementById('term_agreement') == false){ window.location = 'index.php'; } } </script> <form name="registration" enctype="application/x-www-form-urlencoded" method="post" action="index.php?PHPKatalyst=register&step=user_info" onSubmit="check_agreement();"> In order to proceed, you must agree to the following <strong>Terms & Conditions</strong>:<br /><br /> <fieldset stlye="font-style: italic;"> </fieldset> <label for="term_agreement"><input type="checkbox" name="term_agreement" id="term_agreement" />If you agree to these <strong>Terms & Conditions</strong>, then check this box.</label> <div style="text-align: center;"><input type="submit" value="Continue" /></div> </form>
  2. When rendering the page, the order usually loads in this order header, left menu, content, right menu, footer. The problem with that is if the included content page, scripted in PHP, uses the die or exit function, anything past that point will not get rendered. I want the layout to be displayed and then the content to run. As an added complication, it would also need to be able to keep fluidity. This is my first run in DIVs. [code] <div class="header"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="bumper" rowspan="4"></td> <td valign="middle"> <table class="announcement" width="300px" cellpadding="2" cellspacing="1" border="0"> <tr> <th class="announcement"> <img src="themes/connected/images/next_auction.gif" alt="" border="0" /> </th> </tr> <tr> <td class="announcement"> <img src="themes/connected/images/next_auction_bottom.gif" alt="" border="0" /> </td> </tr> </table> </td> <td align="center"> <img src="themes/connected/images/storall_logo.png" alt="" border="0" /> </td> <td width="300px"> </td> <td class="bumper" rowspan="4"></td> </tr> </table> </div><div class="subheader"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="3"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td width="4px" rowspan="2"></td> <td class="body_nav" align="center" width="20%" rowspan="2"><img src="themes/connected/images/navigation.gif" alt="" /></td> <td></td> <td width="4px" rowspan="2"></td> </tr> <tr> <td class="subheader"> <a href="index.html">Auctions</a> |</td> </tr> </table> </td> </tr> </table> </div> <div class="bumper"> </div> <div class="body"> <div class="left_menu_frame"> <div class="bumper"></div> Extras Menu Here </div> <div> Body Content Here </div></div> <div class="bumper"> </div> <div class="footer"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="footer_bumper_left"></td> <th class="footer_sides"> <img src="themes/connected/images/privacy_policy.gif" alt="" border="0" /> </th> <th class="copyright" rowspan="2"> <img src="themes/connected/images/copyright.gif" alt="" border="0" /> </th> <th class="footer_sides"> <img src="themes/connected/images/terms_conditions.gif" alt="" border="0" /> </th> <td class="footer_bumper_right"></td> </tr> <tr> <td></td> <td></td> </tr> </table> </div> <div class="content"> <p align="justify">We would like to take this opportunity to thank you for choosing :ACMS.   is free software provided for distribution by <a href="http://www.endurofusion.net/" target="_efn">Enduro Fusion Network</a>, which does not charge for usage. However, if you enjoy using , we do encourage you to support this project by registering with <a href="http://www.endurofusion.net/index.php?EFN=Register" target="_efn">Enduro Fusion Network</a> and make a donation to keep us running. <br /><br /> Welcome to . To start the installation process, please click on &quot;Begin Install&quot;</p> </div> [/code] [code] /* CSS Document */ body{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; background-attachment: fixed; background-color: #314550; background-image:  url(images/background.jpg); background-repeat: no-repeat; background-position: right top; margin: 0px; } div.header{ position: static; z-index: 1; width: 100%; } div.subheader{ position: static; z-index: 1; width: 100%; } div.body{ position: static; z-index: 0; height: 100%; background-color: #FFFFFF; border: 1px solid #000000; padding: 2px; } div.left_menu_frame{ position: static; z-index: 1; width: 20%; } div.right_menu_frame{ position: static; z-index: 3; width: 20%; } div.footer{ position: static; z-index: 0; width: 100%; bottom: 0px; } div.content{ position: absolute; z-index: 3; padding: 2px; top: 170px; left: 20%; right: 20%; } td.bumper{ width: 5%; } table.announcement{ border: 1px solid #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; } th.announcement{ background-color: #000000; } td.announcement{ background-color: #000000; } td.body_nav{ background-color: #838B8E; border-top: 1px solid #000000; border-bottom: 1px none #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; } td.subheader{ background-color: #424A4D; border-top: 1px solid #000000; border-bottom: 1px none #000000; border-left: 1px none #000000; border-right: 1px solid #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-align: center; } td.subheader a:link, a:visited{ font-weight: bold; color: #FFF200; text-decoration: none; } td.subheader a:hover{ font-weight: bold; color: #FFF200; text-decoration: blink; } td.subheader a:active{ font-weight: bold; color: #BF5A00; text-decoration: none; } td.body{ background-color: #FFFFFF; border: 1px solid #000000; padding: 2px; } td.left_menu{ padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 10px; } th.copyright{ background-color: #838B8E; border-top: 1px none #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; } th.footer_sides{ background-color: #424A4D; border-top: 1px none #000000; border-bottom: 1px solid #000000; border-left: 1px none #000000; border-right: 1px none #000000; } td.footer_bumper_left{ border-top: 1px none #000000; border-bottom: 1px none #000000; border-left: 1px none #000000; border-right: 1px solid #000000; } td.footer_bumper_right{ border-top: 1px none #000000; border-bottom: 1px none #000000; border-left: 1px solid #000000; border-right: 1px none #000000; } [/code]
  3. I have been trying to make a div layout that load in this order. [list] [*]Header [*]Left Menu [*]Content Background [*]Right Menu [*]Content [/list] [IMG]http://i137.photobucket.com/albums/q227/lucaskeiser/Div-Layout.gif[/img] The goal is to have the layout load before the content so that if there is a problem with the content, it won't effect the display ie. using [code]die();[/code] while rendering content.
  4. Oh yeah....that would help. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\Server\Apache Group\Apache2\htdocs\PHP-ECHO\fusions\faccontactus\index.inc.php on line 141[/quote]
  5. I have something wrong and I am missing what. Help please. [code]$fac_qry  = mysql_query("SELECT name, email FROM ".$SET['pref']."_stor_facility WHERE abbr = '$locat'");     list($fac_name, $fac_email) = mysql_fetch_object($fac_qry);[/code]
  6. Thank you, I am all set. You guys are excellent!
  7. And yes taking out the brackets worked, thanks. Except for one thing, my out put is now this: Array ( [0] => '0|0 [1] => 0|1 [2] => 1|0 [3] => 1|1' )
  8. '0|0','0|1','1|0','1|1' These are the four exact values in the database.
  9. Yes, those are the actual input values in the database.
  10. I do not know if it is my sytax. Here check it out. $result = mysql_query("SHOW COLUMNS FROM ".$DB['pref']."_settings LIKE 'layout'"); $type = mysql_result($result,0,'Type'); $type = substr($type, 4, -1); echo $type; $type = split('[\',\']', $type); echo "<pre>"; print_r($type); echo "</pre>"; Results in: '0|0','0|1','1|0','1|1' Array ( [0] => [1] => 0|0 [2] => [3] => [4] => 0|1 [5] => [6] => [7] => 1|0 [8] => [9] => [10] => 1|1 [11] => )
  11. You lost me at the functions. I had never used those before now. Ok, now that I have done that, I ended up with this array: Array ( [0] => [1] => 0|0 [2] => [3] => [4] => 0|1 [5] => [6] => [7] => 1|0 [8] => [9] => [10] => 1|1 [11] => ) How do i clean it up so that the spaces are not part of the array?
  12. Wow, you just lost me. I do not understand the structure of preg and "/(?<=')\w*?(?=')/". I have never had to use it before.
  13. Actually there was a problem with my connection and my browser. Nothing was displaying. Sorry about that. So, back to my problem. I tried that coding but nothing is being put into the $matches[0] array.
  14. Let's try it this way: CREATE TABLE settings ( layout set('aba', 'aaa', 'abc') default 'aba' ) This is the table design. I want PHP to take the options that layout can be set as and display them as a drop-down menu. Is it possible without having to type aba, aaa, abc into my php code? Let's try it this way: CREATE TABLE settings ( layout set('aba', 'aaa', 'abc') default 'aba' ) This is the table design. I want PHP to take the options that layout can be set as and display them as a drop-down menu. Is it possible without having to type aba, aaa, abc into my php code?
  15. Let's try it this way: CREATE TABLE settings ( layout set('aba', 'aaa', 'abc') default 'aba' ) This is the table design. I want PHP to take the options that layout can be set as and display them as a drop-down menu. Is it possible without having to type aba, aaa, abc into my php code?
×
×
  • 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.