HTML - Html Login Script
Hi,
My friend asked me to do a script for a phpBB2 forum where he has an application on an external website, and when the user clicks submit, it automatically posts a new topic in the "application" section, with the application in it. I am not sure if this is possible, but I am willing to give it a go. I made a script where the applicant clicks 'submit', and it automatically brings him to the main forum page, and already logged in. There is no problem with having the username and password as plain text, as registration is free anyway and the account will just be 'appbot' or something. This is what I have so far: Code: <form action="http://www.website.com/login.php" method="post"> <input type="hidden" name="username" value="username" /> <input type="hidden" name="password" value="password" /> <input type="hidden" name="redirect" value="" /> <input type="submit" value="Go to Forum!" /> </form> I was wondering if it is possible to navigate through both the login and the new topic button and create the new topic without redirecting the user, or if that isn't possible to at least have the user click the button and then be redirected to the new post (which is already made by the script) rather then the main page. Thanks P.S. - I am only asking for the website navigation I should be fine for the inputting of the application and converting it to a post. Similar TutorialsHello, I am trying to help my friend out with designing a SQL database for registered members to "login" and have the ability to view website content in the "members only" section. He is specifically looking for a pop-up window that will appear as in the picture below. He also has a consultant who has advised him to use "SQL". Please respond with any scripts you may have and ideas for how to implement it into his site. Thank you, your response will be very much appreciated. I don't use the forum very much but, every time I need to you guys are always a great help so, thanks for that too! Alright first of all i would like to state that i don't have a clue as to what language to do this in but o well here it goes. I have been trying to create something that would attempt to login to a site every 6 hours with the same login info. how would i do this. I'm not looking for a step by step tut on this just what language i should look into for it. Thx. HI! I need some help but don't see where the problem is. My ftp always returns a 'failed to login' script. Heres what I have: <form name="LoginPage" action="ftp://username:password@ftp.hello.com/" onSubmit="YY_checkform('document.LoginPage','Username','#q','0','Field \"Username\" is not valid.');tmt_compareField('Username', 'Password','!=','Login%20failed.%0DPlease%20try%20again.');tmt_formAction('LoginPage','ftp://username:password@ftp.hello.com');return document.MM_returnValue" method="get"> <p> <h3>Username</h3> </p> <input type="text" name="Username"> <p> <h3>Password</h3> </p> <input type="text" name="Password"> <br><br> <p> <input type="submit" name="Submit" value="Submit"> </p> <p><h3>If you are having problems logging in, please <a href="mailto:hi@hello.com">contact us</a>. </h3></p> </form> I've double checked to be sure the username and password are correct. Also, when I just type ftp://username:password..etc into my URL it goes straight into the ftp site.. Any help? Hi, this is jyothi. I am new in this site, I am preparing new program with login page, But I don't know the script for the login button, Can anyone please help me. how do I make an html webpage that I can log into. hey guys, im new here and i dont really knwo if im posting this in the right place, but i am trying to make a website with a login sequence so the Guests can only see half of the Website and you must register to see the rest and can post comments, update profiles and stuff, but i cant host it with database so is it possible to just make a website like that? and not using a free website creator... thnx for reading D.emon Hi, I'm new here. So i have problem, friend ask me for making a web but only in HTML cause portal on which she got account doesn't support PHP. And I'm wondering if there is some more or less easy way to create login/password protected access to the web form in HTML, that she can log in and then add posts on her website in way that I'm using right now writing this post. Of course all in HTML, if its not possible I will figure out something else. Thanks in advance. =] Hello gurus, usually i write code to bypass the login and passwd page for science journals as in our organisation we want to give the access to journals for all users ith out they knowing the passwd.. I copy the page source of the login page of journal and change login and passwd type to hidden and enter the value..in the form.. But this particular journal is giving this following probs.. <INPUT TYPE="hidden" NAME="signin" VALUE="Sign In" TABINDEX="3"> if I change hidden to submit it is working..but i donot want the user to click sigin also..it should directly login to the journal.. Pls help tosolve this problem.. or is there any other way to bypass the login page and enter in to a site if i know the login and passwd.. thanks Hey all, new here and not a very good coder at all, but i find pieces of information and try and make best of it....and as far i can see i cant find this sort of information on this website my problem is im trying to create a code that will log in to a website, wait a few (i.e. 2 seconds) then go to a second web page that is a part of this site for example --> www.htmlforum.com --> (automate login) --> then go to www.htmlforum.com/example this is what i have found so far </head> <body> <FORM action=http://www.thewebsiteexample.com/login.php method= post name=login> <INPUT class=login_input type=hidden name=usrname value="myusername"> <INPUT class=login_input type=hidden name=uemail value="myemail@hotmail.com"> <INPUT class=login_input type=hidden name=peeword value="mypassword"> <INPUT class=login_input type=submit value=Login> <body onload="document.login.submit();"> </form> </body> this code allows me to log in successfully to the site i wish to go to i also have this code to allow loading of a new page (but works only AFTER successfully logged in) <script> <!-- location.replace("http://www.mywebsiteexample.com/arms.php"); --> </script> my problem is i dont know how to join the code, whereby i successfully log in, then run the script to go to the subpage my idea is to delay running of the script code perhaps? which should then allow to successfully load the subpage...or perhaps you guys know another way help is DEFINITELY very appreciated! cheers all! How to create explorer like menu in Html or java script? eg + Game(inside this Cricket and Football) when click on + sign it become like-- - Game -Cricket -Football Can anybody suggest me, by which command I can do it? Commercial Removals || Removals and Storage||Specialist Removals Hi. I will try to be as specific as I can. I'm new to html. I'm trying to create a html file that when you click on it it takes you to a url embeded in the file. I tried simple anchore, but when I click on the file it open in a windows with hyperlink. I understand that I need to create a script to do that. Can anyone help me? Thanks Hi, I inherited an internal html page that queries a .bat to pull out which users are logged on via rdp to my different servers. Now its suddenly stopped working and I think there's a problem with the html. The .bat runs a quser command against a list of machines which is outputted as a text file. The html page then pulls the info from the text file and should present the data in a readible format. However all I'm getting is a blank html page. The .bat is working because I can see the correct output in the text file. My html script is as follows, could someone take a look and see if it is correct? Thanks for any help! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <meta name="description" content="www.northwind.com, northwind Remote Desktop Connection Status" /> <!-- auto refresh page every 360 seconds --> <meta http-equiv="refresh" content="360"> <title>northwind - Remote Desktop Connection Status</title> <style type="text/css"> body {color: #666666; font-family: arial,verdana,tahoma; font-weight: normal; background: #FFFFFF; font-size: 12px;} h2, .grey {color: #666666; font-weight: bold;} h3, .blue {color: #0000CC;} .srvhdr {color: #0000CC; font-weight: bold; } .greenbg {background: #00FF66;} .tbl {border: 3px solid #999999;} a:link, a:visited {color: #0000CC; text-decoration: none } a:hover, a:active {color: #0000CC; text-decoration: underline} </style> </head> <body> <script language="VBScript"> !-- Sub ReadFiles Dim objFSO, objCheckFile, objFile, HeaderList, UserList, s, h,i HeaderList = array(5) UserList = array() Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objCheckFile = objFSO.GetFile("\\northwindbm\Global\Corporate\Query_RDP_MODWK\Result_Quser.txt") 'check file exists' If objCheckFile.Size > 0 Then 'open text file' Set objFile = objFSO.OpenTextFile("\\northwindbm\Global\Corporate\Query_RDP_MODWK\Result_Quser.txt", ForReading) 'read each line' Do Until objFile.AtEndOfStream strNextLine = objFile.Readline 'if server name then create new row and insert name s = Instr(1, strNextLine, "MODWK", 1) j = Instr(1, strNextLine, "USERNAME", 1) 'SERVER' if s > 0 then document.write ("<tr><td colspan=6 class=srvhdr>" & strNextLine & "</td>") document.write ("<td width=1%> </td></tr>") else 'not server include headers and / or user data 'remove leading spaces' strNextLine = trim(strNextLine) 'replace 2 consecutive spaces with1 Do While InStr(1, strNextLine, " ") strNextLine = Replace(strNextLine, " ", " ") Loop if j > 0 then HeaderList = Split(trim(strNextLine), Chr(32)) document.write ("<tr><td width=15% class=grey>" & HeaderList(0) & "</td>") document.write ("<td width=15% class=grey>" & HeaderList(1) & "</td>") document.write ("<td width=15% class=grey>" & HeaderList(2) & "</td>") document.write ("<td width=15% class=grey>" & HeaderList(3) & "</td>") document.write ("<td width=15% class=grey>" & HeaderList(4) & "</td>") document.write ("<td width=15% class=grey>" & HeaderList(5) & "</td>") document.write ("<td class=greybg> </td></tr>") erase HeaderList else UserList = Split(trim(strNextLine), Chr(32)) ' if session name is blank update array' i = InStr(1, UserList(1), "rdp", 1) if i = 0 then ReDim Preserve UserList(6) UserList(6) = UserList(5) UserList(5) = UserList(4) UserList(4) = UserList(3) UserList(3) = UserList(2) UserList(2) = UserList(1) UserList(1) = " -" end if document.write ("<tr><td width=15%>" & UserList(0) & "</td>") document.write ("<td width=15%>" & UserList(1) & "</td>") document.write ("<td width=15%>" & UserList(2) & "</td>") document.write ("<td width=15%>" & UserList(3) & "</td>") document.write ("<td width=15%>" & UserList(4) & "</td>") document.write ("<td width=15%>" & UserList(5) & " (" & UserList(6) & ")</td>") document.write ("<td class=greenbg> </td></tr>") erase UserList end if end if Loop Else document.write ("<tr><td colspan=6>The file is empty.</td></tr>") End If objFile.Close End Sub document.write("<div align=center><h2>northwind</h2>") document.write("<h3>Remote Desktop Connection Status</h3>") document.write("Page loaded : <em class=blue>" & Date & " " & Time & "</em> <br />") document.write("<table border=1 cellpadding=2 cellspacing=2 width=90% class=tbl>") ReadFiles() document.write("</table><br />") document.write("Any queries please contact : <em> <a href=mailto:Steven.Blogss@northwind.com> Steven Blogs (Network Administrator)</a></em></div>") --> </script> <br > </body> </html> How can I run HTML from Javascript? What I mean is that from etc. index.html I will load a file.js script, which will include the whole HTML. Not sure if I can explain myself correctly, do you know what I mean? Hi, i am creating a web page dynamically through ajax like this here i am creating a td element and appending a button element to it Code: var td5= document.createElement("TD"); td5.style.whiteSpace = "nowrap"; td5.setAttribute("id", "button" + hostname); var button=document.createElement("input"); button.setAttribute("type", "button"); button.setAttribute("id", "updatebutton" + hostname); button.setAttribute("value", "Click here"); button.setAttribute("onclick", "alert('OK')"); td5.appendChild(button); it appearing good on web page the but when i click the button, where i am not getting supposed alert Code: button.setAttribute("onclick", "alert('OK')"); line is not showing effect and when i try like this Code: button.onclick=new Function (alert('hi')); when my IE loads the page i am getting alert where as , alert must come after clicking the button any work around please Thanks R Ok I here I go... Well, hey wassup? Im a TERRIBLE HTML scripter... I would appeciate it if you guys could make me a star rating system for my gaming site... If it's possible, please make the starts into sticks of dynomite I dont check my HTML forums that much, so go to www.youtube.com/tecknoobie and send me the URL of the Forum post that I made so I could see the script... Thanks i need a html script that shows the nick of the guy who view it. for example if my nick is yahavx, than ill see "yahavx" and whoever named killer will see instead "killer" not sure if thats html script but i think so... its for vb forum. example: http://sleepywood.net/forum/showthread.php?t=1523448 (its off right now for some reason) thanks. my site http://betyoulikeit.com is done with photoshop slices... photoshop generates tables and now i want to place a carousel script with the rotating images that i can update daily.... -------------------------------------------------- -------------------------------------------------- location of code:(large_blank.png) PHP Code: <tr> <td> <img src="imagesxxx/betyoulikeit_sliced_papers_06.png" width="1" height="1" alt=""></td> <td rowspan="11"> <img src="imagesxxx/betyoulikeit_large_blank.png" width="267" height="528" alt=""></td> <td> <img src="imagesxxx/spacer.gif" width="1" height="1" alt=""></td> </tr> <tr> thanks everyone... -tikki I found a good pagination script. But, the CONTENT of the pagination script is all PHP. I want the CONTENT of it to be HTML, see- here's the code I want to change: HTML Code: <?php // some example data foreach (range(1, 100) as $value) { $products[] = array( 'Product' => 'Product '.$value, 'Price' => rand(100, 1000), ); } ?> See where it says "foreach (range1, 100) as $value)" I want that to change to an HTML item. Right now it's displaying #s 1-100, but I want it to display individual HTML tables instead. Is this possible? Hey guys, I've been having some trouble figuring this out for the last couple days. I am trying to add a delete option, and it deletes, BUT prompts an error message. Attribute validation error for tag cfoutput. The value of the attribute query, which is currently dirQuery, is invalid. The error occurred in C:\inetpub\wwwroot\EXAMPLEURL.com\admin\upload.cfm: line 51 49 : <table> 50 : <!---Start the looping query---> 51 : <cfoutput query="dirQuery"> 52 : 53 : <CFIF name IS NOT "upload.cfm"> _________________________ The code i have for this page so far is this: <CFSET SendFileTo = "C:/inetpub/wwwroot/EXAMPLEURL.com/"> <CFPARAM NAME="Action" DEFAULT=""> <title>Admin Panel | Upload</title> <html> <body> <CFIF Action IS ""> <!---Get all the files in the current directory---> <cfdirectory directory="#SendFileTo#" name="dirQuery" action="LIST" FILTER="*.pdf" sort="Name, Type"> <!---Show all the files---> <table> <tr> <td colspan="2" align="center"><img src="../Images/logo.jpg" alt=" Admin" width="333" height="120" /></td> </tr></table>Files must be in .pdf format </CFIF> <CFIF isDefined("form.FileContents")> <cffile action = "upload" fileField = "FileContents" destination = "#SendFileTo#" nameconflict="makeunique"> <P style="color: red;">File has been successfully uploaded.<br /> click the below link to view new content. </P> <a href="upload.cfm"><b>[Click here to update list.] </a></b> </CFIF> <!---If the "Delete" link has been clicked, then remove the file that was passed in the URL string---> <CFIF Action IS "Delete"> <cffile action = "delete" file = "#SendFileTo##FileName#"> <P style="color: red;"><b>File has been successfully removed on the server.</P><b/> <a href="upload.cfm"> <b><h1>[ Click here to go back ].</a></b></h1> </CFIF> <!---Show the upload form---> <br /><form method="post" action=<cfoutput>#cgi.script_name#</cfoutput> name="uploadForm" enctype="multipart/form-data"> <br /> <input name="FileContents" type="file"> <br /> <br /> <input name="submit" type="submit" value="Upload File"> </form> <!---Get all the files in the current directory---> <table> <!---Start the looping query---> <cfoutput query="dirQuery"> <CFIF name IS NOT "upload.cfm"> <tr> <td><a href="#cgi.SCRIPT_NAME#?action=delete&fileName=#name#">[ Delete ]</a></td> <td><A href="http://www.EXAMPLEURL/#name#">[ View/Download ]</a></td> <td>#name#</td> </tr> </CFIF> </cfoutput> </table> <br /><br /> <a href="members_only.cfm">Click here to go back.</a> </body> </html> is there a better way than this (below) to style Script and Code, to look like script and code when written/typed in html? For instance how does the [ HTML ] [ /HTML ] in this forum work? HTML Code: <style type="text/css"> .csslook { font-family: "Courier New", Courier, monospace; font-size: 12px;} .darkpink {color:#990099;} .green {color:#006600;} .pink {color:#FF00FF;} .darkblue {color:#000099;} .blue {color:#0000FF;} </style> <div class="csslook"> <span class="darkpink"><style type=<span class="green">"text/css"</span>></span><br> <span class="pink">#mainContent {</span><br> <span class="darkblue">padding</span><span class="pink">:<span class="blue">0px 1px 0px 1px</span>;</span><br> <span class="darkblue">border-width</span><span class="pink">:<span class="blue">1px 2px 2px 1px</span>;</span><br> <span class="darkblue">border-style</span><span class="pink">:<span class="blue">solid</span>;</span><br> <span class="darkblue">background</span><span class="pink">:<span class="blue">#faf6f6</span>;</span><br> <span class="darkblue">color</span><span class="pink">:<span class="blue">#000</span>;</span><br> <span class="darkblue">border-color</span><span class="pink">:<span class="blue">#edd #baa #baa #eed</span>;</span><br> <span class="darkblue">font-family</span><span class="pink">:<span class="blue">Arial, Helvetica, sans-serif</span>;</span><br> <span class="darkblue">size</span><span class="pink">:<span class="blue">12px</span>;}</span></span><br> <span class="darkblue"></div></span> </div> |