jjmusicpro
Members-
Posts
290 -
Joined
-
Last visited
Never
Everything posted by jjmusicpro
-
anyone?
-
Hey guys, i had an app that did a CURL call to log into facebook however it seems like they updated there login for there mobile site. Here is the HTML <form method="post" action="https://login.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2Flogin.php&fbb=r01c1fe28&refid=9"><input type="hidden" name="lsd" autocomplete="off" /><input type="hidden" name="post_form_id" value="d90410be5a12934868b59878b1159a37" /><input type="hidden" name="charset_test" value="€,´,€,´,水,Д,Є" /><span class="mfss fcg">Email or Phone:</span><br /><input class="input" type="text" name="email" value="" /><br /><span class="mfss fcg">Password:</span><br /><input class="input" type="password" name="pass" /><br /><div><input type="submit" value="Log In" class="btn btnC" name="login" /> I have this below, but cant figure out how to update it with the new HTML above. $url="https://login.facebook.com/login.php?m=m&refsrc=http%3A%2F%2Fm.facebook.com%2F&fbb=rb8b9213c&refid=8"; $POSTFIELDS = 'charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&lsd=-H1sd&email='.urlencode($username).'&pass='.urlencode($password).'&login=Log+In'; Any help would be great!
-
Simple RegEx with Sample And HTML - Not working :(
jjmusicpro replied to jjmusicpro's topic in Regex Help
Figured it out, didnt see i had the extra <div> at the end preg_match('/<div class=\"c\"><strong>([^\<]*)<\/strong>/i', $result, $name); -
I cant get this to work for some reason... just kicks out blank... Code preg_match('/<div class=\"c\"><strong>(.*?)<\/strong><\/div>/i', $result, $name); echo $name[0]. " " .$name[1]; I even tried this preg_match('/<div class=\"c\"><strong>([^\<]*)<\/strong><\/div>/i', $result, $name); echo $name[0]. " " .$name[1]; HTML <div class="c"><strong>My Cool Name</strong> I want to get "My Cool Name" out of that...
-
will CURL with with ajax? never tried it with it. Also, even if i request it via ajax, they still will have to wait for it to process, and it will bring back a "time out"... message But when i try on my stock xp machine, it processes until its done.... ? Maybe a browser setting?
-
I have a page, that upon post, does some logic, this logic can take 1-30 minutes... Now sometimes I will get a "Page time out"....and others i wont... even if im requesting the same data. I used it successfully everytime on my stock xp, with ie8 But cant get it to work on my VISTA WIN7 x64 machins, and another xp machine, after about 1-5 min it says "page time out", then i test it on my stock xp machine, and it can run for 45 min, or runs until everything is finsihed and shows the page. Any ideas?
-
keep in mind there are multiple <div class="mfsm"></div> on the page...thats why i couldnt look through it directlyl.
-
So if i have <div class="mfsm">Email:</div></td><td valign="top"><div class="mfsm"><a href="mailto:Array">myemail@gmail.com</a></div> I want it to give me anything within the <div class="mfsm"></div> Now sometimes there might be an image in there like <div class="mfsm"><img src="/something/joe.jpg"></div> so i want that full thing "<img src="/something/joe.jpg">" thats what my reg exp tried to do before.
-
When i try that above i get a wrong kick out. preg_match('|href="mailto:([^"]*)"|', $result, $email); echo $email[0]. " " .$email[1]. " " . $email[2]; Kick out below .href="mailto:Array" Array .href="mailto:Array" Array
-
anyone ?
-
Is my ([^\<]*) is whats messing it up?
-
Ok cool, here is one i tried doing myself, but having same problems. HTML - <div class="mfsm">Email:</div></td><td valign="top"><div class="mfsm"><a href="mailto:Array">myemail@gmail.com</a></div> Here is what i have, but its blank.. preg_match('|mail([^\<]*)<\/div><\/td><td valign=\"top\"><div class=\"mfsm\">([^\<]*)<|', $result, $email);
-
To get rid of the <strong></strong> i just did a str_replace... but i assume there is better way to do this?
-
That also gets the <strong></strong>, and i dont want that
-
I have this in the html: <div class="c"><strong>Joes Cool Name</strong></div> I am trying to use preg_match to just get "Joes Cool Name" out of it, but keep getting blank values... Here is what I have..thanks for any help guys... im new to preg_match function preg_match('/<div class=\"c\">([^\<]*)<\/div>/i', $result, $name);
-
Not sure why my session values are not working, any ideas here? config_page.php <?php //Config Information session_start(); $_SESSION['portal_title'] = 'Cool Title'; // Portal Title ?> index.php <?php include("includes/config.php") ?> <html> <head> <title><?php echo $_SESSION['portal_title']; ?></title> </head> <body> My title is <?php echo $_SESSION['portal_title']; ?> </body> </html>
-
nope, i can copy paste that link into my browser and it works fine. works fine even if a hyperlink, it seems as if the form submit dosent take anything after the ?
-
I have this form below, and cant get it to go to a hyperlink from a button control. It seems that in the action tag, it cant take parmaters, when it click, it only goes to base site, nothing is added for paramters Ive tried the 2 ways below, both dont work. my_site is my url decided to not put it in <form action="http://my_site/modules.php?name=Content&pa=showpage&pid=2" name="groovyform"><input type="submit" class="groovybutton" value="Group Information" /></form> <form><input type="button" value="Joes button" onClick="window.location.href='http://my_site/modules.php?name=Content&pa=showpage&pid=2'"></form>
-
So this is how i would do it? I would have 2 arrays, 1 that gets my data, then i add that data to the main array? arry1 = ['','','','','',''] Then I add array1 into array 2?
-
So that will format the array like the example is? I always used the push method, but it ended up maing the array like this ['','','',''] not like this[[],[],[],[],[],[]]
-
I have a Loop that I am doing for records in a DB, and I needed to add them to an array, but can figure out how to get this structure down for this array... here is the array format... I know how to add an item to a single array like var mydata = ['data','data','data'], But dont know how to do these multi dimentional ones like this. var myData = [ ['3m Co',71.72,0.02,0.03,'9/1 12:00am'], ['Alcoa Inc',29.01,0.42,1.47,'9/1 12:00am'], ['Altria Group Inc',83.81,0.28,0.34,'9/1 12:00am'] ]; <javascript> <? DB CONNECTION.... LOOP if dbinfo = xx { add info to array } else { //dont add to array } END LOOP ?>.</javascript>
-
I will be deploying this on a clients machine that is running windows, but allowing iis to run php.
-
Will this make it so anyone can pull and get databack out?
-
I know I know, I am using php to access, my company wont let me install mysql so access has to do now. I am making an application, and wanted to get data from access, however, i was looking at these connection strings, and it asks for a username and password, but i dont have one on my database, how do i get around this, or can i make a username, and password in access and use that? Thanks!