Jump to content

marknt

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by marknt

  1. [quote author=printf link=topic=110187.msg444950#msg444950 date=1159750565] You need Perl or you need to hack the source / core, explicitly altering how rfc1867.h works, which I wouldn't recommend if you don't know C or C++ and PHP(s) core structure. There is a hack to do this, but it has memory leaks. If you check the PHP mailing list around June of 2003, Wez Furlong (PHP Team) and someone else posted a better way of doing it (supporting RAW_POST_DATA) for upload input streams! me! [/quote] That is correct. Im trying to search an alternative way than using Perl to implement the upload progress bar but as of now i found nothing. I'll keep on googling  :)
  2. Try something like this: [code]<form action="<?=$link?>" method="post">[/code] Where the link can be the file itself (" $_SERVER['PHP_SELF'] ") or something like ./edit.php depending on the situation. [quote]Note: A form can only contain [b]ONE[/b] action.[/quote] Furthermore, Sir AndyB is correct. What exactly do you want to happen?  ???
  3. [quote author=ignace link=topic=110060.msg444186#msg444186 date=1159616876] what you are looking at is a captcha method, google it, for more information on the subject [/quote] Huh? I am not asking about the CAPTCHA text seal in that yahoo and I know how to create a CAPTCHA. Are you sayin that the onclick on the radio button then a fading animation will appear is a CAPTCHA? I don't think so. My question is how to create that fading effect animation if you onClick on the radio button.  ;)
  4. [quote author=Renlok link=topic=110017.msg444154#msg444154 date=1159606858] [quote]Try changing $result = $db->query($query); to $result = $db->query($query) or die ($db->error);[/quote] ive done what you said which seems to make a difference but it still dosnt work. [/quote] Umm try to do it the hard coded way for testing purposes only. Like this one ---> or die(mysql_error());
  5. Hello people. I don't know if this is the right place to post my question. Anyways, I have been trying to search a script similar to [url=https://protect.login.yahoo.com/login/set_pref?.partner=&.src=fpctx&.intl=us&.done=https%3A%2F%2Flogin.yahoo.com%2Fconfig%2Flogin_verify2%3F.src%3Dfpctx%26.intl%3Dus%26.partner%3D%26.done%3Dhttp%253A%252F%252Fwww.yahoo.com]https://protect.login.yahoo.com/login/set_pref?.partner=&.src=fpctx&.intl=us&.done=https%3A%2F%2Flogin.yahoo.com%2Fconfig%2Flogin_verify2%3F.src%3Dfpctx%26.intl%3Dus%26.partner%3D%26.done%3Dhttp%253A%252F%252Fwww.yahoo.com[/url] I have searched javascript onclick radio buttons but i found nothing. I have also searched dynamicdrive.com but i found nothing. Notice if you click the radio button, there is an animation that is going to happen. It will fade slowly goin up or goin down. My question is do you have a link that will produce the same fading image animation once the radio button is clicked that is similar to yahoo? Is AJAX involved in the fading animation effect? Do you have any examples or tutorials to make that radio button onclick show something in a fading effect? Please help i want to create that one. Thank you so much  :)
  6. Ah ok thanks. After posting my question here in phpfreaks forum, i found out the answer to my question. Anyway thanks a lot sir fenway and sir wildteen88 for your help. One of my dreams is to have a Zend PHP certification someday  ;D
  7. Hello everyone. I have a problem with javascript. I want to change the value of my button when the form is submitted or the button is clicked. Like in www.myspace.com Notice if you click the Login button in myspace.com, the button's value will change to "Logging In" I've been googling it but all i get is wrong links. Please help thanks in advance. More power PHPfreaks  :)
  8. Im a PHP Developer. I already solved my own problem *sigh* . As for file_get_contents you said, it is also an alternative option to my code but it is already working. My solution to my problem is resetting the variable $contents_url so that it will not concatenate and il just array_push the separated value to my array. After that I will do a for loop and parse each value in the array. My supervisor from my first work told me to do a regular expression (matching). Thanks btherl!  :)
  9. Hello people! Im new here. Im on a deadline. I need your help about fread. Here's the scenario: Im reading a textfile with emails on it (one email per line) and i've already parsed it. I already opened the $handle which is $myspace_search_url = "http://search.myspace.com/index.cfm?fuseaction=find.search&searchType=network&interesttype=&country=&searchBy=Email&f_first_name=mark143rlc@yahoo.com&Submit=Find&SearchBoxID=FindAFriend"; $handle_url = fopen("$myspace_search_url", "rb"); while (!feof($handle_url)) { $contents_url .= fread($handle_url, 8192); } That is already working but in the inputted text file contains for example 3 email addresses. I made a for loop to read all of the emails in the text file. $contents = file($filename); $contents_count = count($contents); for($x=0; $x<$contents_count; $x++){ $myspace_search_url = "http://search.myspace.com/index.cfm?fuseaction=find.search&searchType=network&interesttype=&country=&searchBy=Email&f_first_name=".$contents[$x]."&Submit=Find&SearchBoxID=FindAFriend"; $handle_url = fopen("$myspace_search_url", "rb"); while (!feof($handle_url)) { $contents_url .= fread($handle_url, 8192); } if (strpos($contents_url, "We weren't able to find a") != 0) { // the email has no myspace account echo "THE EMAIL ADD $contents[$x] HAS NO MYSPACE ACCOUNT!!!<br>"; $valid = true; } else if (strpos($contents_url, "We weren't able to find a") == 0) { // the email has a myspace account echo "THE EMAIL ADD $contents[$x] HAS A MYSPACE ACCOUNT!!!<br>"; $valid = false; } fclose($handle_url); } // end of for loop The problem is if you put it inside a for loop, the $contents_url concatenates so the strpos will be confused in finding the "We weren't able to find a". For example the first email has a myspace acct, the strpos will not find the "We weren't able to find a" string so $valid will return true. In the second loop, it will parse the next email in the text file that is not valid so that it will return false. BUT the problem is the $contents_url now contains two values because of the concatenation. It will find a "We weren't able to find a" AND it will not find "We weren't able to find a" so my validation will not work. Is there any other way for this ---> while (!feof($handle_url)) { $contents_url .= fread($handle_url, 8192); } I mean if in the first loop I will put the contents to a different variable and in the second loop I will put the second content to a different variable? By the way, I have tried this inside the for loop but this is not working ---> while (!feof($handle_url)) { $contents_url .= fread($handle_url, 8192); $contents_url_array[$ctr] = $contents_url; array_push($contents_url_array, $contents_url); } The var_dump($contents_url_array) will output one index(0) with a value of (the concatenated search output which is wrong).......I have 3 loops that will happen in my for loop Is there a way I can put this in my array? ---> array(3) { [0]=> "valid_email" [1]=> "not_valid_email" [2]=>  "valid_email" } The text file I have contains 3 email addresses.     mark143rlc@yahoo.com <--- this is VALID (Valid = this email has a myspace acct.)     not_valid@gmail_yahoo.com <--- this is NOT VALID     marknt15@gmail.com <--- this is VALID That is all thank you very much! Please help. Thanks in advance. God Bless.
×
×
  • 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.