Jump to content

sKunKbad

Members
  • Posts

    1,832
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by sKunKbad

  1. Simply float:left all of the "boxes", which would be divs. Make sure to declare a width for each of the divs, and you're all set.
  2. you need session_start(); on every page/script
  3. What do you mean that it sends the data as html/email?
  4. Is this the code from your site when you got hacked? Please show more code.
  5. sKunKbad

    Divider line

    I'm just guessing that you need to declare float:left, or float of some kind
  6. You should ask this question in the PHP help forum. You're more likely to get help there.
  7. The problem is that a javascript function name cannot start with a number: Try this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php echo' <HTML> <HEAD> <TITLE>Form</TITLE> <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> <!-- function DWORLD() { document.myform.action = "uploader.php?FN=3DWORLD"; } function TENyard() { document.myform.action = "uploader.php?FN=10yard"; } function NINETEEN42() { document.myform.action = "uploader.php?FN=1942"; } function NINETEEN43() { document.myform.action = "uploader.php?FN=1943"; } function SEVEN20() { document.myform.action = "uploader.php?FN=720"; } function EIGHTeyes() { document.myform.action = "uploader.php?FN=8eyes"; } --> </SCRIPT> </HEAD> <BODY> <TABLE> <TR> <TD>'; if (file_exists('Games/10yard.NES')) { echo ''; }else{ echo '<A HREF="javascript:TENyard()">10-Yard Fight</A><BR>'; } if (file_exists('Games/1942.NES')) { echo ''; }else{ echo '<A HREF="javascript:NINETEEN42()">1942</A><BR>'; } if (file_exists('Games/1943.NES')) { echo ''; }else{ echo '<A HREF="javascript:NINETEEN43()">1943</A><BR>'; } if (file_exists('Games/3DWORLD.NES')) { echo ''; }else{ echo '<A HREF="javascript:DWORLD()">3-D WorldRunner</A><BR>'; } if (file_exists('Games/720.NES')) { echo ''; }else{ echo '<A HREF="javascript:SEVEN20()">720°</A><BR>'; } if (file_exists('Games/8eyes.NES')) { echo ''; }else{ echo '<A HREF="javascript:EIGHTeyes()">8 Eye\'s</A><BR>'; } echo' </TD> <TD> <form name="myform" action="uploader.php" method="POST" enctype="multipart/form-data"> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" NAME="change" value="Upload File"> </form> </TD> </TR> </TABLE> </BODY> </HTML>'; ?>
  8. I tried your original script (HTML) in FF and it doesn't change the action.
  9. If you are storing the username in a session, then that is where you will have to look for it: $trainer = $_SESSION['name'];
  10. you could use cURL to post to any formmail program. I recommend tectite.com's formmail program, but there are many to choose from.
  11. you could add slashes with addslashes()
  12. You could use a rewrite rule in .htaccess: RewriteEngine On RewriteBase / RewriteRule ^Chekhra/modules/user/index.php(.*)$ http://www.chekra.com/Chekhra/modules/user/index.php? [R=301]
  13. I own a small business, and we use an email service called getresponse.com, however, I don't recommend them because they are a pain. I'm going to try a new one called constantcontact.com. These type of services have pre-built forms that you can use on your website to have customers add themselves to your database, and when you want to send an email, you just log in, fill out the email to broadcast, and click a few buttons. These types of services are known by ISPs to deliver mail that isn't spam, so your emails have a better chance of not being flagged as spam. There's no way that I would send all of my email to my customers off my own server, and I don't think you should either. Something to consider.
  14. Show an example of how javascript doesn't recognize it. What are you trying to do? Javascript has it's own ways of importing data. You don't need php to import data for use by javascript.
  15. You should probably write your queries out on one line, because the way you have done it, it can quickly get confusing and messed up. When inside php, your query can have line breaks in it if you need to keep it organized that way. Theres no need to concatenate the query the way you have done it.
  16. use the path from the server such as: include "/var/www/includes/some_include.php";
  17. preg_replace would change the characters easily. Is that all you want to do? $message = '‘single quoted string’ “double quoted string”'; $patterns[0] = '/(‘|’)/'; $patterns[1] = '/(“|”)/'; $replacements[0] = "'"; $replacements[1] = '"'; $message1 = preg_replace($patterns,$replacements,$message); echo 'Translated text = ' . $message1 . '<br>';
  18. Centering a horizontal menu sometimes requires using display:table and display:table-cell. Search around Google or Yahoo and you will see how this is used.
  19. what is CRUD?
  20. What do you mean by format? Do you want the array to be converted to XML or something?
  21. I figured it out just minutes after posting, but it was too late to modify my post. Thanks to anyone that may have started to attempt to help.
  22. I'm working on a template. It's a 3 column layout (Fixed-Fluid-Fixed), and has been set to a max width and centered. I've also implemented a sticky footer, but it only renders correctly in IE6 and IE7. Firefox and Opera display a gap above the footer, and Safari has odd behavior when resizing the window (sometimes a gap, sometimes no gap). Obviously there is some sort of CSS issue here, but I'm not quite sure what is going on. Perhaps a set of fresh eyes can catch the bug/mistake I made: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Sticky Fingers</title> <script type="text/javascript" src="minmax.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="http://yui.yahooapis.com/2.5.0/build/reset-fonts/reset-fonts.css" /> <style type="text/css"> html, body {height: 100%;} #ie6_fix { height:100%; } #wrapper { max-width:900px; height: auto; min-height: 100%; margin: 0 auto -57px; } * html #wrapper{height:100%;} #header { background-color:orange; width:100%; height:75px; } #left { float:left; width:200px; background-color:pink; } #right { float:right; width:200px; background-color:pink; } #center { margin-right:215px; margin-left:215px; background-color:yellow; } #push{float:left; clear:both; height: 57px;} #footer { clear:both; background-color:orange; height:57px; max-width:900px; margin: 0 auto;} </style> </head> <body> <div id="ie6_fix"> <div id="wrapper"> <div id="header"> <h1>3 Columns - 3 Divs</h1> </div> <div id="left"> <p><b>Left Column: <em>200px</em></b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p> </div> <div id="right"> <p><b>Right Column: <em>200px</em></b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p> </div> <div id="center"> <p><b>Content Column: <em>Fluid</em></b> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi pretium suscipit purus. Pellentesque pulvinar purus eget sem. Proin est mi, consectetur at, mattis in, dictum ac, erat. Proin tempor condimentum eros. Nam neque ante, malesuada sed, tempus vel, fringilla ut, metus. Cras sollicitudin. Morbi placerat bibendum tortor. In blandit. Donec consectetur sodales metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p> </div> <div id="push"></div> </div> <div id="footer"><a href="#">Back to the article</a></div> </div> </body> </html> The javascript is only to make IE6 to behave for max-width, so it shouldn't be an issue, and I haven't included it here, especially since the problem isn't an IE problem.
  23. search for cron or crontab.
  24. Something that has not been mentioned yet, and is worth checking, is the default encoding set in php.ini. If it is not UTF-8, then change it.
×
×
  • 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.