Jump to content

jscix

Members
  • Posts

    197
  • Joined

  • Last visited

    Never

Posts posted by jscix

  1. Assuming you've already connected to the database and everything?

     

    Then you should first:

     

    $filteredemail = htmlspecialchars($_GET['email']);

     

    // Check if the email is valid

     

    then

     

    $newsletters = mysql_query("INSERT INTO `newsletter.email` VALUES '" . $filteredemail . "'") or die("Unable to add entry");

     

  2. You could use sessions obviously like frost said, or you could just add a get variable into the url

     

    echo('<a href="?c=' . $c = $c + 10 . '&post_value_identifier=post_values_you_want_to_keep>Next</a>');

     

    $keptmypostvalue = ($_GET['post_value_identifier']);

     

  3. Okay. First off thanks for any help in advance.

     

    My problems are:

     

    1. I'm a CSS Noob.

    2. My CSS only displays properly on Firefox (Windows) and not on IE (Windows)  -- I haven't checked other browsers, yet.

    3. When I resize the brower, the navigation will drop down a line, outside of the background box they are inbedded in.

     

    Questions:

    1. Does anyone know what I need to do, to make this display on internet explorer, as it does on mozilla?

    2. How do I fix this so that; when the browser is resized the navigation links, do not move?

     

    You can see the page at:  http://www.novascene.net/layout.php  (CSS is not in an external file.)

     

    Also my source is as follows:

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Novascene.net</title>
    <link rel="shortcut icon" href="music.png" type="image/x-icon" />
    
    <style type="text/css" media="screen"><!--
    body {
    font-size: 11px;
    font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
    color:black;
    padding:0px;
    margin:0px;
    }
    a {color: blue;}
    a:visited {color:blue;}
    a:hover {color: blue;}
    a:active { color:blue;}
    
    #nav {
    display: block;
    width: 100%;
    height: 15px;
    background-color: #C0C0C0;
    }
    
    navlink {
    display: inline;
    width: 80px;
    height; 15px;
    background-color: #C0C0C0;
    border: 1px solid black;
    }
    
    navlink:hover {
    background-color: #C0C2C1;
    border: 1px dashed #000000 ;
    color: #000000;
    }
    
    </style>
    
    <html>
    <body>
    <img src="nvscene2.gif"><br>
    
    <div id="nav">
    <font style="margin-left: 100px;"><a href="#test"><navlink>Test Link1</a></navlink></font>
    <a href="#test"><navlink>Test Link2</a></navlink></font>
    <a href="#test"><navlink>Test Link3</a></navlink></font>
    <a href="#test"><navlink>Test Link4</a></navlink></font>
    
    </div>
    <br><br>
    hi 
    </body>
    </html>
    

     

     

    I would greatly appreciate ANY help. Thanks much. :)

  4. I don't see a problem with your code. so, if the directory has the correct settings and it still doesnt work, try writing a small script to chmod some random file. Does that work?

     

     

    Found this on php.net:

     

    "Note:

    The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. The mode can be changed only by user who owns the file on most systems."

  5. I'm not positive what is causing your error; but I found this on php.net :::::::::::

     

     

     

    As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error:

     

    PHP Catchable fatal error:  Object of class <classname> could not be converted to string in <file> on line <line>

     

    Try this code to get the same results as before:

     

    <?php

     

    if (!is_object($value) || method_exists($value, '__toString')) {

        $string = (string)$value;

    } else {

        $string = 'Object';

    }

     

    ?>

     

     

    ---------

     

    Hope that helps.

  6. The issue seems to be in the fgets loop, It hangs up for a decent time (i'd say 30-40 seconds), then sucessfully ends but the variable will contain no data.

     

    I've tried the same loop, on an FTP port on my server and it sucessfully retreives data.. so i'm not positive what the problem is... Anyone see the problem or have some suggestions??

     

     

    
    $wserver = "rs.internic.net";
    $domainn = "testwhatever.com";
    
    $cwhois  = @fsockopen("udp://" . $wserver, 43, $errn, $errstr, 30) or die("$errn - $errstr");
    print "connected<br>";
    
    fputs($cwhois, $domainn . "\r\n") or die("error sending request");
    print "sent request<br>";
    
    while (!feof($cwhois)) {
        $result .= fgets($cwhois, 200);
    }
    fclose($cwhois);
    print "closed connection<br>";
    
    
    if (eregi("No match for", $result)) {
        print "available";
    } else {
        print "taken";
    }
    
    

×
×
  • 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.