Jump to content

11Tami

Members
  • Posts

    329
  • Joined

  • Last visited

    Never

Posts posted by 11Tami

  1. Well, it may be a roundabout reason for posting it here. I know people write software and scripts in php. So I was hoping some php programmers might know what software pads are. I went to a couple of software sites and they all require people listing software to give their software pad id numbers. But when I do a google search no where does it say what they are. I even tried asking a few of these software sites and they wouldn't tell me.
  2. LOL Fenway, have me giggling over here, your funny. Well thats a relief that made no sense. Thanks a lot Tel. Every many many months, things like this happen for no apparant reason. Last night I restarted the computer for another reason and its working fine now. I don't think my script was resaving properly. You guys did it! Thanks for help. I'll send you something at least.
  3. Man I would think so too, looks fine but somethings wrong. Commas all look correct. Strange thing is when I put in an incorrect array like this in it works.

    arr = new Array(
    ["link name"],["http://www.google.com"],
    ["another link name"],["http://www.yahoo.com"]);

    When I switch the above to a correct array like that below then it doesn't work. I don't get it. If anyone that knows javascript and has the time and can test it maybe you can see whats wrong.

    Here's the whole thing as it seems like it should work.

    <body onload="changelink()"><a href="#" id="url"></a>

    arr = new Array(
    ["Link name google","http://www.google.com"],
    ["Link name yahoo","http://www.yahoo.com"],
    ["Link name msn","http://www.msn.com"]
    );


    function changelink()   
    {
    document.getElementById("url").href = arr[new Date().getSeconds()][1]; 
    document.getElementById("url").innerHTML = arr[new Date().getSeconds()][0];
    setTimeout('changelink()',1000);}

  4. Gosh none of those work, seems like they should. You sure there isn't some sort of hidden conflict in this somewhere?    -----> arr

    arr = new Array(
    ["Link name google","http://www.google.com"],
    ["Link name yahoo","http://www.yahoo.com"],
    ["Link name msn","http://www.msn.com"]
    );

    arr = [
    ["Link name google","http://www.google.com"],
    ["Link name yahoo","http://www.yahoo.com"],
    ["Link name msn","http://www.msn.com"]];

  5. Man you both make a great team and are both very nice, I appreciate the help. The looping only meant when it got to the end of the array it wouldn't start over but now it does. Between the two of your ideas it is almost working. Tele's adjusting my string, and keeping setTimeout like Fenway said, the two combinations work very well together. Now I am having trouble with my array, it was incorrect before it wasn't combining the two sides. I tried this but somethings still wrong, can you see what it is?

    Then I'll send you both something for helping me.
    Problem still with this, can't see a problem but there is one.
    arr = new Array[
      ["Link name google","http://www.google.com"],
      ["Link name two","http://www.yahoo.com"]
      ];
  6. I have only two items in the array just as an example. If you try to run the script with 60 items for every second when it get to the 60th item it stops.
    Its supposed to start over when it gets to the end of the array and it doesn't. Can anyone help me fix it?
    Thank you very much. Tami

  7. Hi can anyone tell me why the array doesn't start over when it gets to the end? Thank you very much. Tami


    <BODY onload="changelink();"><a href="#" id="url"></a>

    arr = new Array(
    ["link name"],["http://www.google.com"],
    ["another link name"],["http://www.yahoo.com"]);

    function changelink()   
    {document.getElementById("url").href = arr[new Date().getSeconds()-1][0]; 
    document.getElementById("url").innerHTML = arr[new Date().getSeconds()-2][0];   
    setTimeout('changelink()',1000);}
  8. Gosh, I was going to say I think I need something more than that something in the parenthesis or something....rand(etc.)

    Yes I have something I am rotating. Can't list the script someone else gave it to me but its pretty simple. I just need a random variable to call on instead of getting the date. Right now as you can see it calls on the day. I need it to call on a random command instead.      $getfile = date("d");

    Hope some of you have some random commands I can put there instead.
  9. Hi, I have a form that sends to my email and there are a couple values in the php form that are supposed to help with spam but they don't seem to be working. Because when I change them to just anything the form still sends to my email. I am hoping someone can tell me what these do so that I can fix them to actually work and protect my form. Here they are and I have no idea what they do. Thank you!!! Tami

    $http_referrer = getenv( "HTTP_REFERER" );
    if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; }
    This one is at the end of my mail() string and I am supposed to list in it the name of the page with the php in it. But when I change it to anything it doesn't seem to matter. It all still sends.
    "X-Mailer: chemailphp.php 2.07"
  10. I've been working on this for several days. I don't know why its so hard! Trying to add a simple entry to a my sql table. server version
    4.0.27 database name "dropdown"  table name "buttons" column name "one"  I sure hope someone can help, thanks! Tami

    <?php
    $con = mysql_connect("","dropdown","");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }mysql_select_db("dropdown", $con);

    $firstname = $_POST['firstname'] ;
    $sql="INSERT INTO buttons (one)
    VALUES
    ('$_POST[firstname]')";

    if (!mysql_query($sql,$con))
      {
      die('Error: ' . mysql_error());
      }
    echo "1 record added";mysql_close($con)
    ?>

    input field name is "firstname"
    <form action="http://www.website.com/dropdown.php" method="post">
    first name<input type="text" name="firstname" />
    <input type="submit"/>
    </form>
  11. Hello, I know how to make forms with php. Not quite sure how to
    include a radio button function.

    For instance. Maybe someones picking a color. This in the html page.
    Red:
    <input type="radio" checked="checked"
    name="color" value="male">
    Blue:
    <input type="radio" checked="checked"
    name="color" value="male">
    Purple:<input type="radio" checked="checked"
    name="color" value="male">

    Do I need a different $ in the php for each color?
    How will only the one picked be sent to the php form?

    Thank you very much!!
  12. Hey lightray did you get fopen working? I am having same problem. When I try this, I only
    get a blank page and no error message, almost like its working but not showing the url.

    <?php
    $filename =
    http://www.website.com/;
    fopen($filename, "r") || die ("Could not open file");

    ?>

    Does someone know whats wrong with fopen retrieving url's? Thanks
×
×
  • 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.