Jump to content

michaelfurey

Members
  • Posts

    27
  • Joined

  • Last visited

michaelfurey's Achievements

Member

Member (2/5)

0

Reputation

  1. I created a login system with bootstrap but for some reason I cannot delete the "placeholder" (in which it is written "admin") in both the inputs of the form ("uname" and "psw"). Even if I change the placeholder it's remain "admin". Have you any idea? This is the code: <!DOCTYPE html> <html> <head> <title>Login</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <link rel="stylesheet" type="text/css" href="css/styles.css"> </head> <body> <div class="container"> <div class="jumbotron text-center" id="jumbo_log"> <h1>Login Page</h1> <p>You must login to enter</p> <form id="theform" method="get"> <div class="container2"> <label for="uname"><b>Username</b></label> <input type="text" id= "uname" name="uname" required><br> <label for="psw"><b>Password</b></label> <input type="password" id="psw" name="psw" required><br><br> <input type="submit" id="submit" class="btn btn-info" value="Login"><br><br> <a class="btn btn-primary" href="registration.php" role="button">Click here if you are not registered</a> </div> </form> </div> </body> </html>
  2. Yep that's the right title of the topic. I suppose that you can create "quite" easily a Chained Select with Javascript and Ajax.. I was wondering if with PHP it's the same.
  3. I forgot to specify that I should get the selected country from a similar html datalist tag: <datalist id=country_data></datalist> And get the selected value to reduce the name options of the second datalist: <datalist id=name_data></datalist> In other words I should connect both datalists each other.
  4. I would like to connect two html datalists each other. For example starting from a table like that obtained with a SQL query:: +----+---------+--------+--------+ | ID | Name | Country| Gender | +----+---------+--------+--------+ | 1 | Michael | USA | M | | 2 | John | USA | M | | 3 | Michele | Italy | M | | 4 | Carlo | Italy | M | | 5 | Pablo | Mexico | M | | 6 | Lucy | USA | F | +----+---------+--------+--------+ SELECT * FROM genders I would like to select in the first datalist one country in order to see in the second datalist only the names of the persons living in that country. So if I select USA in the first datalist in the second one I should see only the names Michael, John and Lucy. I suppose that an easy way to do that is saving the selected option of the first datalist (for example USA) in a variable ($country_selected) and to modify the SQL query to get the data of the second datalist adding a where clause (where=$country_selected)). But my problem is that I don't know how to create $country_selected... is it possible with PHP?
  5. I am trying to create a bot to auto login to one external blog. Unfortunately when the html 'body' of that site is loading appears an alert: <body onload="alert('Welcome to my personal Blog! Click on continue to Login')" Is there a way to avoid that this alert appears in order to auto fill the username and password more easily?
  6. Well I don't have bad intentions however I understand your point of view!
  7. Hi! I am trying to do a script to fill in and submit this page: https://sa.www4.irs.gov/irfof/lang/en/irfofgetstatus.jsp . Unfortunately my script doesn't work... have you some ideas about the reasons? <?php $dir = 'C:/Users/mmea/Desktop/temporary/'; $refundAmount = // WHY $TIN3 = // DID $TIN2 = // YOU $TIN5 = // POST $filingStatus1 = // THESE? $url="https://sa.www4.irs.gov/irfof/lang/en/irfofgetstatus.jsp"; $postinfo = "refundAmount=".$refundAmount."&TIN2=".$TIN2."&TIN5=".$TIN5."&TIN3=".$TIN3."&filingStatus=".$filingStatus1."&autologin=1&Submit2=Submit"; $cookie_file_path = $dir."/cookie.txt"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path); curl_setopt($ch, CURLOPT_COOKIE, "cookiename=0"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_REFERER, $_SERVER['REQUEST_URI']); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postinfo); curl_exec($ch); curl_close($ch); ?>
×
×
  • 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.