Jump to content

NArc0t1c

Members
  • Posts

    299
  • Joined

  • Last visited

    Never

Posts posted by NArc0t1c

  1. Oh. yes, 25. : )

     

    Here is an example of what I mean by using fsockopen to check the mail server,

    <?php
    // $Email will be the email address.
    
      function CheckEmail($Email)
      {
          if (empty($Email)) {
              return false;
          } else {
              list($UserEmail, $MailServer) = explode('@', $Email);
              unset($UserEmail);
              $Connection = fsochopen($MailServer, 25, $errno, $errstr, 30);
              if (empty($Connection)) {
                  echo 'The email address you entered is not valid.';
                  return false;
              } else {
                  return true;
              }
          }
    ?>/code]

  2. oh..

    Use this then,

    <?php
      $mq = mysql_connect('localhost', 'root', '');
      mysqlselectdb('database', $mq);
      
      $Contents = file('File.txt');
      $Query = mysql_query('SELECT ID FROM Table');
      //Loop trough the table.
      $Row = mysql_fetch_array($Query);
          // Loop trough the file using foreach, giving us single lines.
          foreach ($Contents as $Lines) {
              list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines);
              if ($ID == $Row['ID']) {
                  $Query = 'UPDATE Data...';
                  mysql_query($Query);
              }
          }
    ?>

  3. Actually, I don't think the form tag has the onLoad event. NArc0t1c's code should work, though it seems a unnecessarily indepth. Wouldn't this work?

    <body onLoad="myForm.submit()">
    <form name="myForm">
    ...
    

     

    Mine is a little bit long..

    Yes your's would also work.

     

  4. This is possible..

    Try making a div, and then use a loop for depending on how many text fields you have.

    You could also use the number of the loop to identify the text fields names.

     

    I'm not the best of Ajax/Javascript scripters but here goes..

    <script type="text/javascript>
    function AddField(Type, Number, Div) {
    var Element = document.getElementById(Div);
    Element.innerHTML = '<form action="script.php" method="post">';
    for(i=0;i<=Number;i++){
    Element.innerHTML .= '<input type="' + Type + '" name="Field' + i + '">'; }
    Element.innerHTML .= '<input type="submit">';
    }
    </script>

     

    Sorry if it doesn't work.  ::)

  5. Try this.

    <html>
    <head>
    <script type="text/javascript">
    function submit(form){
    document.form.submit();
    }
    </script>
    </head>
    <body onLoad="javascript:submit(myForm)">
    <form action="script.php" method="post" name="myForm">
    Name: <input type="text" name="Name" value="Predefined"/>
    Password: <input type="text" name="Password" value="Predefined"/>
    <input type="submit" name="submit"/>
    </form>
    </body>
    </html>/code]

  6. uhm.., Okay..

    Try this,

    <?php
      $mq = mysql_connect('localhost', 'root', '');
      mysqlselectdb('database', $mq);
      
      $Contents = file('File.txt');
      $Query = mysql_query('SELECT ID FROM Table');
      //Loop trough the table.
      while ($Row = mysql_fetch_array($Query)) {
          // Loop trough the file using foreach, giving us single lines.
          foreach ($Contents as $Lines) {
              list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines);
              if ($ID == $Row['ID']) {
                  $Query = 'UPDATE Data...';
                  mysql_query($Query);
              }
          }
      }
    ?>

  7. Hello there,

     

    Try the following script,

    <?php
    // We get the file as an array here.
    $Contents = file('File.txt');
    
    // Loop trough the file using foreach, giving us single lines.
    foreach($Contents as $Lines){
    list($ID, $Record_Type, $First_Name, $MI, $Last_Name, $Firm, $Address, $Type) = explode('delimiter', $Lines);
    $Query = 'UPDATE Data...';
    mysql_query($Query);
    }
    ?>

     

  8. Well, except for the 404 after submitting the form.

    The requested URL /javascript/forms/validation_-_onlinetools.org/formsend.php was not found on this server.

     

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

     

    The mysql query it is spitting out,

    SELECT value FROM appvar WHERE id=(SELECT app_chan_event.appvar_id FROM app_chan_event, appvar WHERE app_chan_event.appvar_id=appvar.id AND appvar.type_id =(SELECT id FROM appvar_type WHERE name='pg') AND c_e_id=(SELECT id FROM chan_event WHERE chan_id=5 ORDER BY id DESC LIMIT 1))

    Please give us the scripting near the query.

     

  9. The main reason to make it W3 compliant is to let it work in all browsers.

    dtd file?, do you mean how to validate it?

    You have to make it W3 compliant, if it's not, on that website it will give the errors that you should fix.

    Mainly it is the invalid usage of "/".

  10. Are you using localhost in the navigation bar?

    If you want to view it from other computers on the network, you need to edit httpd.conf

     

    Look in the file for something similar to what you would find in a .htaccess file.

    Look for the following:

        #
        # Controls who can get stuff from this server.
        #
    #   onlineoffline tag - don't remove
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1

     

    And add the following:

        # This is your computers local area network address. 
        Allow from 10.0.0.0

  11. A few things,

    The text looks like it wants to run away from the laptop.

    Laptop's shadow falls weird.

    Default link color's.

    Submit button is upside down.

     

    Overall, Looks like someones homepage, not their work website.

     

  12. ME?

    You gotta be kidding me. :D

    Oh, I though anyone who finds that joke funny must be married... sry. 8)

    Me, I used to run Single 1.0, but I've upgraded to Single 1.2 because the new Over-The-Sink-Dining plugin is really nice.

     

    Aww, Cool, I wondered when they would release that.  :D

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