iamalive Posted November 4, 2007 Share Posted November 4, 2007 Hi I've added the login form to the front page of my site and it works fine. However, my experience tells me, if it isn't obvious, then it causes problems! <form method="post" action="yourdomain.com/whmcs/dologin.php?goto=clientarea">Email Address: <input type="text" name="username" size="50"> Password: <input type="password" name="password" size="20"> <input type="submit" value="Login"> </form> There is no "Login" Button incorporated in the script - users should just know that they use the "Enter" key. Sorry, but they don't. Can you tell me how to change the script so that it produces a Login button? That would be really helpful. I suggest it also becomes a standard feature in the script. Thanks for this great forum - it's appreciated! Regards 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted November 4, 2007 Share Posted November 4, 2007 You have the code: <input type="submit" value="Login"> ^ That produces a button that says "Login", so I'm not sure what you mean? 0 Quote Link to comment Share on other sites More sharing options...
iamalive Posted November 4, 2007 Author Share Posted November 4, 2007 I'm afraid it doesn't. I've put the code as is on a webpage and it doesnt, and I've tried in an html editor and it doesn't. That's what I mean. Two different systems, local and on the web and it doesn't show a button. You can see what I mean at webhost4u.ch on the front page (It's a work in progress). Regards 0 Quote Link to comment Share on other sites More sharing options...
uberhost Posted November 4, 2007 Share Posted November 4, 2007 I'm afraid it doesn't. I've put the code as is on a webpage and it doesnt, and I've tried in an html editor and it doesn't. That's what I mean. Two different systems, local and on the web and it doesn't show a button. You can see what I mean at webhost4u.ch on the front page (It's a work in progress). Regards I tried the link, but it's just going to a Plesk Welcome page right now, so I can't see the code. You should definitely have a button using that form code. 0 Quote Link to comment Share on other sites More sharing options...
iamalive Posted November 4, 2007 Author Share Posted November 4, 2007 OOps! Sorry - the site name is webhosts4u.ch - there's an extra s Have a look at the source code, and you'll see it doesn't work. Thanks for your efforts 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 4, 2007 Share Posted November 4, 2007 You're missing a " after "submit and before name. <input type="submit name="Submit" value="Login"> 0 Quote Link to comment Share on other sites More sharing options...
iamalive Posted November 4, 2007 Author Share Posted November 4, 2007 There's something very strange going on with this site - The source code shows what you say, but the actual code I've entered is correct. There are some other errors shown in the source code, which don't exist either. I'm going to have to dig a lot deeper.... :-( Thanks for the help, though. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 4, 2007 Share Posted November 4, 2007 When dealing with Smarty and PHP in general, you need to look "above" the error you're seeing, since sometimes errors will "cascade" from the actual source. A missed (or extra) quote or a comma somewhere will make the parser think it's to do something differently. Happens frequently. Holler if we can help. 0 Quote Link to comment Share on other sites More sharing options...
robbo Posted November 4, 2007 Share Posted November 4, 2007 In the line: <td><input type="text" style="width: 100px; name="username" size="50"> </td> Edit: Same on the password input line as well. Add a " after width: 100px; That should fix it up for you. 0 Quote Link to comment Share on other sites More sharing options...
iamalive Posted November 4, 2007 Author Share Posted November 4, 2007 You're right! That did the trick! Well spotted and thanks very much! Love this forum! Regards 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.