I am using Dreamweaver8 to upload the basic user log in page to a godaddy hosted account and while it tests fine on my test server... after uploading to the proper location, it doesn't work at all.

I can test the db properly remotely, but it just doesn't execute the same. Anyone work with dreamweaver to have any insights as to what I need to do to resolve this?

Thanks!!

    Can you post the code that is giving you trouble?

      <?php require_once('Connections/verification.php'); ?>
      <?php
      // *** Validate request to login to this site.
      if (!isset($_SESSION)) {
      session_start();
      }

      $loginFormAction = $SERVER['PHP_SELF'];
      if (isset($
      GET['accesscheck'])) {
      $SESSION['PrevUrl'] = $GET['accesscheck'];
      }

      if (isset($POST['usernamefield'])) {
      $loginUsername=$
      POST['usernamefield'];
      $password=$_POST['passwordfield'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "launcher.php";
      $MM_redirectLoginFailed = "notfound/welcome.html";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_verification, $verification);

      $LoginRS__query=sprintf("SELECT name, pw FROM priv WHERE name='%s' AND pw='%s'",
      get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));

      $LoginRS = mysql_query($LoginRS__query, $verification) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
      $loginStrGroup = "";

      //declare two session variables and assign them
      $_SESSION['MM_Username'] = $loginUsername;
      $_SESSION['MM_UserGroup'] = $loginStrGroup;	      
      
      if (isset($_SESSION['PrevUrl']) && false) {
        $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];	
      }
      header("Location: " . $MM_redirectLoginSuccess );

      }
      else {
      header("Location: ". $MM_redirectLoginFailed );
      }
      }
      ?>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <title>Serious Protection</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

      <style type="text/css">
      <!--

      A: { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
      A:link { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
      A:visited { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #990000; text-decoration: underline; font-weight: normal;}
      A:hover { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #3268B5; text-decoration: underline; font-weight: normal;}

      .title { font-family: Arial, Verdana, Helvetica; font-size: 10pt; color: #990000; font-weight: bold; font-style: normal; text-decoration: none;}
      td { font-family: Arial, Verdana, Helvetica; font-size: 9pt; color: #000000; font-weight: normal; font-style: normal; text-decoration: none;}

      -->
      </style>
      </head>

      <body marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" background="http://images.secureserver.net/hosting_welcome/background.gif">
      <div align="center">
      <table cellpadding="0" cellspacing="0" border="0">
      <tr>
      <td height="76"><img src="http://images.secureserver.net/hosting_welcome/clear.gif" width="1" height="1"></td>
      <td><p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>For access to this site, please request login and password from <a href="mailto:admin@prototool.com">admin@prototool.com</a> </p>
      </td>
      <td><img src="http://images.secureserver.net/hosting_welcome/clear.gif" width="1" height="1"></td>
      </tr>
      </table>
      <form action="<?php echo $loginFormAction; ?>" method="POST" name="Login" id="Login">
      <label>User name:
      <input name="usernamefield" type="text" id="usernamefield">
      </label>
      <p>
      <label>Password:
      <input name="passwordfield" type="text" id="passwordfield">
      </label>
      </p>
      <p>
      <label>
      <input name="Submit login info" type="submit" id="Submit login info" value="Submit">
      </label>
      <input name="Reset Login Info" type="reset" id="Reset Login Info" value="Reset">
      </p>
      </form>
      <p>&nbsp;</p>
      </div>
      </body>
      </html>

        Are you getting any error messages?
        Have you uploaded the Connections folder?
        Is this the first time you've tried this or have you had this working before?

          No error messages.... just a blank white page. The connections folder does upload and it has a corresponding verification.php file in it.

          It has never worked after being uploaded to the godaddy hosting server where my domain is located. I have a test server loaded on my laptop and it runs fine and directs to the appropriate pages under the proper (or improper) inputs from the user there....

          I'm kind of stumped.

            larronfritz:

            Have you checked to make sure you have included all of the Dependent files? It's important to upload the images, multimedia, and CSS style sheet, etc.,files.

            Also, have you check the FTP log file? This might give you a hint as to where the error is.

              actually, i know your problem, i do this all the time. :queasy:

              make sure you select "passive transfers" in dreamweaver on the ftp screen.

              otherwise you get a 0 length file, and a blank screen, and you scratch your head trying to figure it out.

                I have a godaddy hosting account and use dreamweaver php mysql and have never had any problems so I don't think its on their side.

                  Just tried uploading with passive ftp and tested it... same thing happens.

                  Now I deleted all files and folders and it wouldn't even connect via ftp. Now I can't save ANYHTING.. files or folders, or create any folders or files on the site. I e-mailed godaddy and they gave me some screwy answer that has nothing to do with anything. At this point, I'm ready to buy my own box and host it at home.

                  I don't think it's their side, I just wonder if I'm smart enough to work with them. Any other ideas? Does the code look correct? If I open a dedicated session on the site, then it processes the index.php page, but it sends any and all entrys to the form to the launcher.php page regardless of what is entered.... Any suggestions there?

                  Thanks again guys...

                    If you can ftp once more, you may wish to try something. Maybe try a paired down version of your code so that you may perform a test login.

                    [INDENT]edit code removed as contained error[/INDENT]

                    Maybe it will help shed some more light on the subject.

                      the following code....
                      <?php
                      // Connecting, selecting database
                      $link = mysql_connect('mysql55.secureserver.net', 'AUTHADMIN', 'pw45tr')
                      or die('Could not connect: ' . mysql_error());
                      echo 'Connected successfully';
                      mysql_select_db('AUTHINFO') or die('Could not select database');
                      ?>

                      Produces the message "Connected successfully"

                      The code you posted Rodney produces the two part form. When correct data is introduced, it goes to a blank white page..... when incorrect data is entered it displays "Could not connect: Access denied for user: 'AUTHADMIN@winhost28.prod.mesa1.secureserver.net' (Using password: YES)"

                      Godaddy has acknowledged an error and states they reset everything.

                        OK. My apologies on the error in my code. (Obviously I didn't test it.)

                        But then if Go-Daddy has admitted mistake, then does that mean you are good to go?

                        PS (edit your last post and delete your correct login info please)

                          I'm still not sure there is anything wrong with your code...

                          the login info was changed to protect the innocent.... Godaddy now wants $150 to reset everything back to thier original settings. Thier own error... while I'm sure they would not charge this if this is required to fix the sire, thier initial response via a generic response lets me know that I'm simply not a big enough client for them to look into my problems without a lot of effort on my part... so does anyone know of another reliable place to host a page? Thanks.

                            a month later

                            I'm having the same problems. I cannot connect to a GoDaddy MySQL through Dreamweaver. I get a 405 error: Method Not Allowed. Any suggestions other than getting a new host?

                              I ended up hosting off of a box at home... cut out the middle man cause I never did the issue resolved. Wish I could offer better help but I can't sorry,Larron

                                GoDaddy help is really very basic, and I dont think they have any really switched on support staff IMHO.

                                  3 years later
                                  bike5;10668065 wrote:

                                  I have a godaddy hosting account and use dreamweaver php mysql and have never had any problems so I don't think its on their side.

                                  Can I pry your brain?:queasy:

                                    I get an Http Error 403 when trying to connect through the dreamweaver tool. I tried using their PHP code (provided by GoDaddy) but I only get a blank page. Are there permission issues I must change somewhere? Somebody help me please. 🙁

                                      If your UK based then i can definitely recommend EUK-Hosts http://www.eukhost.com/

                                      As for the blank screen, i know why it's going blank white :-) i've had it loads of times.

                                      If you have a syntax error in your code, and the web-host has it's PHP file configured to NOT output errors to the browser, then the script will fail to run but not produce any output. The error message if any will appear in the web host's log file.

                                      I usually find that if a script works fine on my test server and then fails when uploaded, it's because the web-host has disabled a php function that your script uses.

                                      In this case, normal culprits are things like the process execution functions, and anything else that may be used to compromise the web-hosts server.

                                      Cheers

                                      Shawty

                                        Write a Reply...