Jump to content

Fruddy

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Everything posted by Fruddy

  1. <html> <head> <style type="text/css"> body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; scrollbar-base-color:#cccccc; scrollbar-3dlight-color:#333333; scrollbar-arrow-color:#333333; scrollbar-darkshadow-color:#333333; scrollbar-face-color:#cccccc; scrollbar-highlight-color#cccccc; scrollbar-shadow-color:#cccccc; scrollbar-track-color:#cccccc; } table { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; } h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; text-transform: uppercase; font-weight: bold; } .small { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; } .title { font-family: "Visitor -BRK-"; font-size: 16px; color: #3399FF; font-weight: normal; background-repeat: repeat; background-position: left top; } .category_big { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; font-weight: bold; } .category { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; font-weight: normal; } .marked { background-color: #FFFFFF; font-weight: bold; } a, a:visited, a:active { color: #33CCFF; text-decoration: none; font-weight: normal; } a:hover { color: #FFFFFF; text-decoration: underline; font-weight: normal; } a.titlelink, a.titlelink:visited, a.titlelink:active { color: #6699FF; text-decoration: none; font-weight: bold; } a.titlelink:hover { color: #FFFFFF; text-decoration: underline; font-weight: bold; } a.category, a.category:visited, a.category:active { color: #FFFFFF; text-decoration: none; } a.category:hover { color: #FFFFFF; text-decoration: underline; } option, textarea, input, select, file { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; background-color: #FFFFFF; border: 1px solid #333333; } .footer {color: #FFFFFF size: 10px } .form_off { color: #666666; background-color: #DCDCDC; border: 0px solid #666666; } .form_on { color: #000000; background-color: #EEEEEE; border: 0px solid #000000; } .form_username { background-color: #eeeeee; border: 0px solid #333333; background-repeat: no-repeat; background-position: center middle; width: 100px; height: 18px; } .form_password { background-color: #eeeeee; border: 0px solid #333333; background-repeat: no-repeat; background-position: center middle; width: 100px; height: 18px; } .form_usernameohne { border: 0px solid #333333; background-repeat: no-repeat; background-position: center middle; width: 100px; height: 18px; } .form_passwordohne { border: 0px solid #333333; background-repeat: no-repeat; background-position: center middle; width: 100px; height: 18px; } .form_name { background-color: #eeeeee; border: 1px solid #333333; background-image: url(images/name.gif); background-repeat: no-repeat; background-position: left top; } .form_text { background-color: #eeeeee; border: 1px solid #333333; background-image: url(images/message.gif); background-repeat: no-repeat; background-position: center middle; } .input { background-color: transparent; border: 1px none; margin-top: 0px; margin-bottom: 0px; } </style> </head> <body> <form method="post" name="login" action="checklogin.php"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="72%"><input name="ws_user" type="text" class="form_username" onfocus="this.className='form_on'" onblur="this.className='form_off'" size="15" /></td> <td width="28%" rowspan="2"><div align="center"> <input type="submit" name="Submit" value="" style="background-image:url(./style/ok.jpg); height:41; width:41; border: 0px;" /> </div></td> </tr> <tr> <td><input name="pwd" type="password" class="form_password" onfocus="this.className='form_on'" onblur="this.className='form_off'" size="15" /></td> </tr> <tr> <td colspan="2"><div align="center"><span class="style1"><a href="index.php?site=register">register!</a> <a href="index.php?site=lostpassword">lost password?</a></span></div></td> </tr> </table></td> </tr> </form> </body> </html> If you try to click on the form input, then the form will change it's size to the shape that I want. How can I fix it, so it don't change the size while clicking?
  2. www.newcomedy.net My design looks perfectly fine in Firefox. But in Iexplore the layout is completely screwed up. I can't really find a another way to code it... how can i fix it?
  3. www.newcomedy.net My design looks perfectly fine in Firefox. But in Iexplore the layout is completely screwed up. I can't really find a another way to code it... how can i fix it?
  4. I get this error: Fatal error: Call to undefined function: business_header() in /home/n/e/sv_newcomedynet/test.php on line 4 When i try to run this script: <? include('http://www.newcomedy.net/fns/output_fns.php'); business_header(); ?> The function: <? function business_header() { ?> <body bgcolor="black"> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="898" height="186" background="http://www.newcomedy.net/imgs/business_top.gif"> </td> </tr> </table> <? }; ?> I cant figure out what is wrong :/
  5. Weird, but i have tried to remove the _x, but still it doesnt work. Can it be the Form that is causing the problem? <form action="index.php" method="POST"> <table align="center" border="0" cellspacing="0" cellpadding="0"><tr> <td width="898"><img border="0" width="212" height="51" src="http://www.newcomedy.net/imgs/home_06.gif"><input name="button1" type="image" src="http://www.newcomedy.net/imgs/button_01.gif"><img width="116" src="http://www.newcomedy.net/imgs/home_08.gif"><input name="button2" type="image" src="http://www.newcomedy.net/imgs/button_02.gif"><img width="234" height="51" src="http://www.newcomedy.net/imgs/home_10.gif"> </td></tr></table><table align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://www.newcomedy.net/imgs/home_11.gif"> <img src="http://www.newcomedy.net/imgs/home_11.gif"></td></tr></table></form>
  6. Redarrow then why does this form dont work?: [tt]<form action="index.php" method="POST"> <table align="center" border="0" cellspacing="0" cellpadding="0"><tr> <td width="898"><img border="0" width="212" height="51" src="http://www.newcomedy.net/imgs/home_06.gif"><input name="button1" type="image" src="http://www.newcomedy.net/imgs/button_01.gif"><img width="116" src="http://www.newcomedy.net/imgs/home_08.gif"><input name="button2" type="image" src="http://www.newcomedy.net/imgs/button_02.gif"><img width="234" height="51" src="http://www.newcomedy.net/imgs/home_10.gif"> </td></tr></table><table align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://www.newcomedy.net/imgs/home_11.gif"> <img src="http://www.newcomedy.net/imgs/home_11.gif"></td></tr></table></form>[/tt]
  7. I've been told that they have to be there, because the input is type=image. But I tried to remove it, didnt work either..
  8. Yes I think so: <form action="index.php" method="POST"> <table align="center" border="0" cellspacing="0" cellpadding="0"><tr> <td width="898"><img border="0" width="212" height="51" src="http://www.newcomedy.net/imgs/home_06.gif"><input name="button1" type="image" src="http://www.newcomedy.net/imgs/button_01.gif"><img width="116" src="http://www.newcomedy.net/imgs/home_08.gif"><input name="button2" type="image" src="http://www.newcomedy.net/imgs/button_02.gif"><img width="234" height="51" src="http://www.newcomedy.net/imgs/home_10.gif"> </td></tr></table><table align="center" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://www.newcomedy.net/imgs/home_11.gif"> <img src="http://www.newcomedy.net/imgs/home_11.gif"></td></tr></table></form>
  9. My site: www.newcomedy.net/home PHP code: <?php if(isset($_POST['button1_x'])) echo "Button1 was pressed"; elseif(isset($_POST['button2_x'])) echo "Button2 was pressed"; else echo "None of the buttons were pressed"; ?> Even if I press button 1 or 2, the "None of the buttons were pressed" text will appear. Is there something wrong with the code?
  10. The type have to be image or else u cant use the src="http://www.newcomedy.net/imgs/button_01.gif".
  11. As I posted in my other topic, the PHP code for www.newcomedy.net/home looks like this: <? if(isset($_POST['button1_x'])) echo "Button1 was pressed"; elseif(isset($_POST['button2_x'])) echo "Button2 was pressed"; else echo "None of the buttons were pressed"; ?> The problem is that I allways get the "None of the buttons were pressed" text, though i pressed one of the buttons.
  12. Ok, I solved the problem with the design. But now the form script won't work ??? www.newcomedy.net/home php code: <? if(isset($_POST['button1_x'])) echo "Button1 was pressed"; elseif(isset($_POST['button2_x'])) echo "Button2 was pressed"; else echo "None of the buttons were pressed"; ?>
  13. Nobody who knows what might be the problem? :-\
  14. Snooble, what do u mean? this is my bottom code for the normal site: <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="212" height="51" background="http://www.newcomedy.net/imgs/home_06.gif"> </td> <td width="168" height="51" background="http://www.newcomedy.net/imgs/button_01.gif"> <a href="http://www.newcomedy.net/home/business/" title="tryk her for at komme til business sektionen" onmouseover="businessOver()" onmouseout="businessOut()"> <img border="0" src="http://www.newcomedy.net/imgs/button_01.gif" alt="business info" name="business"> </a> </td> <td width="116" height="51" background="http://www.newcomedy.net/imgs/home_08.gif"> </td> <td width="168" height="51" background="http://www.newcomedy.net/imgs/button_02.gif"> <a href="http://www.newcomedy.net/home/creative/" title="tryk her for at komme til creative sektionen" onmouseover="creativeOver()" onmouseout="creativeOut()"> <img border="0" src="http://www.newcomedy.net/imgs/button_02.gif" alt="creative info" name="creative"> </a> </td> <td width="234" height="51" background="http://www.newcomedy.net/imgs/home_10.gif"> </td> </tr> </table> Test.php bottom code: <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="212" height="51" background="http://www.newcomedy.net/imgs/home_06.gif"> </td> <td width="168" height="51" background="http://www.newcomedy.net/imgs/button_01.gif"> <form action="test.php" method="POST"> <input name="button1" type="image" src="http://www.newcomedy.net/imgs/button_02.gif" /> </form> </td> <td width="116" height="51" background="http://www.newcomedy.net/imgs/home_08.gif"> </td> <td width="168" height="51" background="http://www.newcomedy.net/imgs/button_02.gif"> <form action="test.php" method="POST"> <input name="button2" type="image" src="http://www.newcomedy.net/imgs/button_02.gif" /> </form> </td> <td width="234" height="51" background="http://www.newcomedy.net/imgs/home_10.gif"> </td> </tr> </table>
  15. Thanks very much guys! it works now! But a new problem coming up.. This is the old code from my site: www.newcomedy.net/home It does not come out with the same output in test.php www.newcomedy.net/test.php
  16. Well the images needs to be the buttons, and I dont think that submit type can do that. But if this can be done in another way or without using forms, its ok. As long as its going to be the same outcome. I'll try it Orio
  17. Snooble, Play_ still not working. Tried both of your ideas. http://www.newcomedy.net/test.php
  18. Nope, it's not working :-\ http://www.newcomedy.net/test.php
  19. Lets say that I have a content area and 2 buttons on a template: button1: <form action="#" method="POST"> <input type="image" src="http://www.newcomedy.net/imgs/button_01.gif" /> </form> and button2: <form action="#" method="POST"> <input type="image" src="http://www.newcomedy.net/imgs/button_02.gif" /> </form> if I press the first button I'll get some text in the content area... and if I press the second button I'll get some other text. Is that possible?
  20. all pople can view all sites, i just want to make sure that i am logged in. My checkuser: [code]<?php session_start(); include ('database.php'); array_pop($_POST); if ( get_magic_quotes_gpc() ) {     $_POST= array_map('stripslashes', $_POST); } $username= mysql_real_escape_string(trim($_POST['username'])); $password= mysql_real_escape_string(trim($_POST['password'])); $mdpwd= md5($password); if ((!$username) || (!$password)) {     $message = "login_info";     include("login.php"); exit(); } $sql= sprintf("SELECT COUNT(*) AS login_match FROM `users` WHERE `username` = '%s' AND `password`= '%s'", $username, $mdpwd); $res= mysql_query($sql) or die(mysql_error()); $login_match= mysql_result($res, 0, 'login_match'); if ( $login_match == 1 ) {     $_SESSION['username']= "$username";   echo "Du er nu logget ind som<b> "; echo $username; echo "</b>"; } else {     $message = "userinfo"; include("login.php"); exit(); } ?>[/code] The login bar: [code]   <?php session_start(); if (!$_SESSION['username']) { include ("login.php");   exit(1); } else { echo "Du er logget ind som <b>" . $_SESSION['username'] . " </b>";} ?>[/code]
  21. Well i think i have to change the login.php, because in the index, when i login the login.php apear, but i dont want it to apear, when im logged in. But i want to have the "you are now logged in as $username"" to appear, instead of the login.php
  22. yea, it does: http://www.my-project.dk/test.php Login.php: [code] <?php if ($login_match == 1) {     $_SESSION['username'] = $username;     echo "du er logget ind som " ; echo $username; }else{ if (($message == "login_info") || ($message == "userinfo")) {     if ($message == "login_info") {     echo "Du har ikke skrevet dit brugernavn eller kodeord"; } if ($message == "userinfo") {     echo "dit brugernavn og kodeord matcher ikke sammen"; } } } ?> <form action="checkuser.php" method="post" name="form1">   <div align="justify">     <table border="0" align="center">       <tr>         <td class="t11_grey">Brugernavn:</td></tr><tr>         <td><input name="username" type="text" id="username"></td>       </tr><br>       <tr>         <td class="t11_grey"><br>Kodeord</td></tr><tr>         <td><input name="password" type="password" id="password"></td>       </tr>     <tr>         <td><input type="submit" name="Submit" value="Submit"> <a href="http://www.my-project.dk/register.php"> <u>opret bruger</u></a></td>       </td>     </table>   </div> </form>  [/code]
  23. hmm its still doesnt how my name when im logged in: <?php if ($login_match == 1) {     $_SESSION['username'] = $username;     echo "du er logget ind som " ; echo $username; }else{ if (($message == "login_info") || ($message == "userinfo")) {     if ($message == "login_info") {     echo "Du har ikke skrevet dit brugernavn eller kodeord"; } if ($message == "userinfo") {     echo "dit brugernavn og kodeord matcher ikke sammen"; } } } ?> <form action="checkuser.php" method="post" name="form1">   <div align="justify">     <table border="0" align="center">       <tr>         <td class="t11_grey">Brugernavn:</td></tr><tr>         <td><input name="username" type="text" id="username"></td>       </tr><br>       <tr>         <td class="t11_grey"><br>Kodeord</td></tr><tr>         <td><input name="password" type="password" id="password"></td>       </tr>     <tr>         <td><input type="submit" name="Submit" value="Submit"> <a href="http://www.my-project.dk/register.php"> <u>opret bruger</u></a></td>       </td>     </table>   </div> </form> 
×
×
  • 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.