Jump to content

randomguy1234

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

randomguy1234's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Both true. Always /summoner/na/NUMBER and always only three slashes.
  2. It returns: array(2) { [0]=> string(79) " string(21) "/summoner/na/19997298" }
  3. I'm really clueless about regex. I've written a pattern: /<div class=\"search_result_item\" onclick=\"window.location='([^']+)/ My code is something like: randomcharacters <div class="search_result_item" onclick="window.location='/summoner/na/19997298'; return false;"> I need that "19997298" out of there, but I get: <div class="search_result_item" onclick="window.location='/summoner/na/19997298 Help me? I'm new to Regex
  4. So, basically, I'm trying to send a GET form through CURL. Let's say my link is this: $link = "www.example.com?&rand=&notFirstTime=false&transaction_id=$transactionid&house_type=HOUSE_HOUSE"; curl_setopt($ch, CURLOPT_URL, $link); $html = curl_exec($ch); Now, this appeared to work fine, but after I ran a little debugging test, I found out that the "&not" in the link turns into a character, which messes up all the next variables following it, thus they are not sent. One way to dodge this would be to put it in the end, but sometimes things may not be that easy. Currently I'm going for that solution, but I'd like to find another solution for this, in case I have to have two "&not-s" in the link. "echo curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);" outputs: www.example.com?&rand=?FirstTime=false&transaction_id=$transactionid&house_type=HOUSE_HOUSE Now I tried replacing "&" with "&", which seemed to work, but later I found out, that then "$transactionid" will be bugged and not sent. I'm not aware how should I use htmlentities in this case, because I tried it and nothing changed. //"?" being shown instead of the real character in the code I provided.
  5. Instead of 20 lines I could wrap it up with 1 line. But I have thought about it and if I can't find the solution for this, I will do it like you suggested.
  6. Yeah, I know, I've tried almost everything. But I think I provided all information needed, because my code currently pretty much consists of these lines + a form that's 3000 lines long. Shall I copy the form?
  7. Hi. I'm trying to do a PHP post and get at the same time, but I'm running into problems. Basically, the code gets some posted information, then does another post and at the same time does a GET to pass on the variables it acquired from the previous POST. so, I get the POST information: $maakond = $_POST['COUNTY_CODE']; ETC and then my next POST looks like this: echo "<form name=\"majaleht3\" id=\"majaleht3\" method=\"post\" action=\"login.php?COUNTY_CODE=$maakond&CITY_CODE=$city_code&CITY_PART=$city_part&STREET=$tanav&HOUSE_NUMBER=$majanumber&show_on_company_page=$showoncompanypage&show_house_number=$showhousenumber&PLACENAME=$placename&CADASTRAL_NO=$cadastralno&asukoht_vald=$asukohtvald&REAL_ESTATE_NO=$realestateno&hidden_city=$hiddencity&hidden_city_part=$hiddencitypart&seller_name=$sellername&seller_phone=$sellerphone&seller_email=$selleremail&SPECIAL_OFFER_2_WEEK=$specialoffer2week&SPECIAL_OFFER_1_WEEK=$specialoffer1week&valid_thru=$validthru&REO_VISIBLE=$reovisible&priority=$priority&broker1=$broker1&broker2=$broker2&popup_map_onload=$popupmaponload&MAP_PICTURE1_id=$mappicture1id&MAP_PICTURE1_img=$mappicture1img&MAP_PICTURE1_map_area=$mappicture1maparea&MAP_PICTURE1_map_point=$mappicture1mappoint\">"; but instead of posting the link like this: login.php?COUNTY_CODE=mypostedvalue&.... it posts it like this: login.php?COUNTY_CODE=$maakond&....
×
×
  • 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.