michaelfurey
-
Posts
27 -
Joined
-
Last visited
Posts posted by michaelfurey
-
-
What you are talking about is called a Chained Select. Look it up.
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.
-
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.
-
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? -
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?
-
Well I don't have bad intentions however I understand your point of view!
-
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); ?>
bootstrap form cannot delete placeholder
in HTML Help
Posted
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: