PHP & amp; in a url query string variables

I've been scratching my head for a few days now. What I'm trying to do seems so easy, but it does not work. Maybe someone can spot my problem in the code.

What I do is enter a mysql blob unique multiple "pages" field by inserting a snippet of code into the field. This part works fine. The url of the page in question with an article of the sample is
http://208.106.143.80/articles/articles.php?IDQ=141 & cat = 4 & PG = 1

The url contains the article id, category, and page number. At the bottom of the page is pagination which reloads the page with another "page" of the article. The code that is:

$totalpages = $total;
If ($totalpages > 1) {}
echo "< style p ='text-align: right;" > < strong > Page: < facilities > ";". "
If ($i > 1) {}
echo "< a href =" "." $_SERVER ['PHP_SELF']. » ? PG =". ($i - 1). "" "> < < < /A > Prev ';
}
for ($x = 1; $x < = $totalpages; $x ++) {}
If ($x == $i) {}
echo "< strong > [". "]" $x."] < facilities > ';
}
else {}
echo "< strong > < a href =" "." $_SERVER ['PHP_SELF']. » ? PG = "." $x.' "> '." " $x.' < /a > < / strong > ';
}
}
If ($i < $total) {}
echo "< a href =" "." $_SERVER ['PHP_SELF']. » ? PG = "." $k.' "> then > > < /a > < /p >"; "
}
}

Basically everything that I do is to launch the new query string pg = $x to the end of the url of the current page and reload the current page. And that's the problem. Even if the links on the page look right in the browser, it just continues loading the same 'page' over and over again. I can go in the url in the browser and manually change from page 1 to page 2, etc. and that works as it should.

Ideas of someone smarter than me?

What I'm missing here.

Thank you all. I messed around with the script a bit more, and despite the fact that I thought that I had already tried to add the missing values of urlstring, this time when I did, it worked as it was supposed to. History of the problem.

Tags: Dreamweaver

Similar Questions

  • Pass the URL query string variable to Captivate?

    I created a Flash button for my total Captivate, it uses PHP to update a CSV file with the user name and the id of course.

    The user name is from a URL string. If it was just a Flash file, I could pass the page HTML using FlashVar values. My flash button is not exposed until the last slide in the room of Captivate. How can I get this value so that my Flash button can pass it?

    If the value passed to the FlashVar to the Captivate swf, is a local variable that can be called from the Flash button? I know I did not adequately explain this right, but maybe someone can decipher this enough to get the gist.

    Hello

    Just write a javascript in html function that returns the user name.

    Call this function in your flash movie using the external interface call

    Hope this helps

    Delighted Kishore.

  • retrieve the value of the URL query string parameter

    It seems like it should be simple, but for some reason that I can't figure out how to get the value of a variable in a URL query string.

    If it is in my address bar: http://www.whyu.com/whyplayer.html?chosenCLIP=movie

    and I want just the value of 'chosenCLIP' to use in my loaded SWF file, how can I do it in AS3?

    I think that the easiest way is to use SWFObject.

    In your HTML code:

    var flashvars = {};
    If (swfobject.getQueryParamValue ("chosenCLIP")) {}
    flashvars.clip = swfobject.getQueryParamValue ("chosenCLIP");
    }
    swfobject.embedSWF ("myMovie.swf", "myContent", "550", "400", "9.0.0"",","flashvars");

    And the clip variable will be available as a FlashVar to your movie:

    Var loaderInfo.parameters.clip = Clip;

  • Through query string variables in AS3?

    Man! I searched with ferocity and can't seem to find a solution that works for me. I'm trying to pass variables via query string on a page PHP to Flash and then the swf file add video clips from the scene according to the information he receives.

    Here's what the PHP will send:

    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...

    And here is my AS3 code:

    function loaderInfoSh(e:Event):void{
     
     var myQueryStrings=this.loaderInfo.parameters;
     a = myQueryStrings.a;
     b = myQueryStrings.b;
      c = myQueryStrings.c;
     d = myQueryStrings.d;
     e = myQueryStrings.e;
     addTheResults(a,1);
     addTheResults(b,2);
     addTheResults(c,3);
     addTheResults(d,4);
     addTheResults(e,5);
     }
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);


    The addTheResults function takes the coordinates, adds an instance of MC to the scene and positions it as a result.

    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    
     if(val == null){val = "52-46";} // so I can test it locally
    
     var daColor:String;
     
     switch (colnum){
     case 1:
     daColor = "f3951c";
     break;
     
     case 2:
     daColor = "74b47d";
     break;
     
     case 3:
     daColor = "436494";
     break;
     
     case 4:
     daColor = "9b74ac";
     break;
     
     case 5:
     daColor = "b43d44";
     break;
     }
     
     var dash:int = val.indexOf("-");
     var lateral = val.slice(0,dash);
     var vertical = val.slice(dash+1);
     lateral --;
     vertical --;
    
    // adding the MC instance
     var comm:tileB = new tileB();
     comm.name = "comm"+colnum;
     addChild(comm);
     colorMCArray[colnum] = comm;
     
    //Change the color 
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
     var thiscolor = "0x"+daColor;
     colorTransform.color = thiscolor;
     colorMCArray[colnum].transform.colorTransform = colorTransform;
     colorMCArray[colnum].x = 5;
     colorMCArray[colnum].y = 536;
     colorMCArray[colnum].x += (lateral * 9);
     colorMCArray[colnum].y += (vertical * 9)*-1;
     colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
     colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    }
    


    I don't know what I'm doing wrong here.

    Was it the 'e' in the code below that you were related to as the culprit? 'e' is not a keyword. It's just the abbreviation for the word 'event' for the name of the variable of type event which is the subject of the event that triggered the call to function loaderInfoSh. In your code, you have assigned e = myQueryString.e, which should have given you a type mismatch error.

    function loaderInfoSh(e:Event):void{
    
     var myQueryStrings=this.loaderInfo.parameters;
     a = myQueryStrings.a;
     b = myQueryStrings.b;
      c = myQueryStrings.c;
     d = myQueryStrings.d;
     e = myQueryStrings.e;
     addTheResults(a,1);
     addTheResults(b,2);
     addTheResults(c,3);
     addTheResults(d,4);
     addTheResults(e,5);
     }
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    
  • URL query string

    Well so I have seen a lot of sites even this site have url that contains something that looks like this

    http://Google.com/search?=IG=HL blah blah blah

    can someone point me in the market to follow to do this properly, so I am sending you the law given through the query string just something very simple like lets say I wanted to do a say hello to page to someone

    <form name ="myform" method="post">
    <table>
    <tr><td>Name:</td><td><input type="text" name="name" /></td></tr>
    <tr><td>Age:</td><td><input type="text" name="age" /></td></tr>
    <tr><td colspan="2"><input type="submit" name="submit" value="submit" /></td></tr>
    </table>
    </form>
    
    <cfif isdefined("form.submit")and form.age neq '' and  form.name neq''>
         <cfif form.age gt 35>
              <cfoutput>#form.name# you are #form.age# years Old!!</cfoutput>
         <cfelse>
              <cfoutput>#form.name# you are #form.age# years young</cfoutput>
         </cfif>
    </cfif>
    
    

    Say rather than haivng the direct entry page of these data, I want to go to another page for the query link would look something like this

    <a href="http://index.cfm/?greet=old"></a>
    
    

    Or am I not barking to the top of the tree on the right?

    To display the url variables, you bookmark a page that has them, and then call the bookmark or click on a link that includes a query string in the url.

  • How can I get the url query string data to a site created with the Muse? It is not module_url works in Muse.

    In my Muse created site (i.e. musesite.com), the url to the site link will be something like, www.musesite.com/homepage.html?userid=123 and I want to capture the value of username. There is documentation on the use of module_url, but documentation is vague and it's not really show in use in the Muse Awards Business Catalyst. Is there an easy way to retrieve the values of url string that does not script require extensive coding?

    Muse is strictly HTML and CSS and a little Javascript. To use URL parameters as you learn on would need a kind side Server advanced such as PHP which is out of the reach of Muse. Essentially of Muse is not the right tool, you use to achieve this.

    This works for you in Joomla because as Wordpress and they are written in PHP.

  • Load FLV in SWF URL query string

    I would like to load any flv that I have on the server in a a SWF, with a value of the URLS or FlashVars. What I don't know how to do, is get the actionscript Setup to read the value and put it in something like this:

    NS. Play (myVideoName);

    instead of the usual way:

    NS. Play ("somevideo.flv");

    So far, I have the following code:

    var nc:NetConnection = new NetConnection();
    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    theVideo.attachedVideo (ns);

    NS. Play (?);

    Thanks to anyone in advance.

    Any name you give the variable (in the URL string or FlashVars) is available at the root of your movie as soon as it initializes. So, if your URL looks like this:

    http://www.MyURL.com/mySWF.swf?myVideoName=myVid.FLV

    Then you should be able to access that variable in the way you suggest... ns.play (myVideoName)... as soon as the scenario main loads... you can place this code in an onLoad function just to make sure.

    Hope that helps!

  • Query string of the URL - easy!

    It should be an easy question, but I'm deleting. I try to get the URL query string used to access my application. The Application object has a url, but it does not contain the query string. It must be stored somewhere as a URLVariables were opposed, but where? I searched the docs for URLVariables, but developers guide only talks about how configure them on a URL, not how to get from the current URL.

    in your project in the Navigator view folder...

    Look inside the html-template folder...

    This is the model that flex builder uses to generate the html file

  • Example to use the query string in the Oracle Access Manager policy.

    Hi all

    Can is there any one please tell me what is the value of the query string and Query String Variable OAM political?

    If possible, please explain with an example of the sample.

    Thanks in advance.

    Siva NAKI.

    Let's say I have an application that has logout URL as http://abc.com/app.cgi?function=logout&user=LOGGED_USER.
    In this case, logged in user will always be different, but you want the user to sign out when this URL is hit. In this scenario, you can use query string variables and specify the function = disconnect it.

    In other scenarios where you know all the query parameters and you want to protect these URLs then the query string can be used.

    Thank you
    Kiran Thakkar

  • Error #2101: The string passed to URLVariables.Decode must be a URL-encoded query string residues

    : Error #2101: the string passed to URLVariables.Decode must be a query string URL-encoded containing name/value pairs. to Error$ /throwError () to flash.net::URLVariables/decode() to flash.net::URLVariables() to::URLLoader/onComplete() _ flash.net stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest ("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = pouvez; DepartLoader.addEventListener (Event.COMPLETE, completeDepart); depart_btn.addEventListener (MouseEvent.CLICK, DepartUser); Function to execute when you press the start function DepartUser (event: MouseEvent): void {/ / Ready variables here for shipment to PHP DepartVars.post_code = 'Start';}         Send the data to the PHP DepartLoader.load (DepartURL);         welcome_txt. Text = "processing of application...". Good journey. " } / / Close function DepartUser / / / / / function for when the PHP talk back to Flash function completedepart(event:Event):void {if (event.target.data.replyMsg == 'success') {var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload();)} NewWindow.focus (); ("void (0);");             navigateToURL (refreshPage, "_self");         } / / CompleteDepart close function / / / / / View Code for the res button var viewRes:URLRequest = new URLRequest ("view_res.php"); viewRES_btn.addEventListener (MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {navigateToURL (viewRes, "_self") ;} / / / / / / / / Code for the edit profile button var editRes:URLRequest = new URLRequest ("edit_res.php");} editRES_btn.addEventListener (MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {navigateToURL (editRes, "_self") ;}}}

    you need a function named completeDepart to handle the return of you php script.  for example:

    function completeDepart(e:Event):void {}

    trace (e.Target.Data);

    }

  • PHP, handling # in a passage of the string in the query string

    I'm new to PHP the world ASP. I'm working on a shopping cart where, I'm passing the name of the item through the query string in the processcart.php file. It works fine until I have put a sign # in the name of the element. Is there a good way to manage the channels with signs # among them.

    David

    DEPearson wrote:
    > I'm new to PHP the world ASP. I'm working on a shopping cart where I
    > pass the option through the query string name in the processcart.php file. It works
    > great until I have put a sign # in the name of the element. Is there a good way to manage
    > strings containing signs # among them.

    PHP can handle # in a string without problems. The error that you are
    manufacturing must pass # by a query string. In a URL, # indicates a
    element named inside the page. To use # as a character who is preserved
    as a literal value, you need to urlencode. You can either do
    with the urlencoded function. It is probably easier to use the
    URL directly: %23 represents #.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Dissect of Eloqua own AdWords Landing Page and URL with query string parameters, please!

    I presume that for AdWords landing pages are one of the most common types in use. I'm at a new company and try to create an approach that uses the latest methods. HAFS is gradually, and a large part of the information contained in the Topliners is old (2011) as these popular posts

    What is the best way to track Google adwords through Sales Force?
    How to capture Sources referring to forms and Landing Pages using query strings

    and the references using javascript to analyze the parameters in the screens that is 2009 and is not exactly what Eloqua uses today.

    I started to look at what Eloqua uses in its own marketing efforts and saw the potentially useful parts and parts that are confusing. I thought it would be useful if someone could dissect the code of the landing page and explain how each part of the code is. I'm OK with short descriptions and references to other articles or messages to explain the different parts that have not changed.

    Here's a page url to use. I added 'x' before each additional parameter then click top ruin the campaign stats.

    http://demand.Eloqua.com/LP=3461?elqoffer=xGartnerMQ & GoogleCampaign = xEloqua & SLS = xPPC_Google_Eloqua_2012 & gclid = xCKGFzcHyh7YCFQThQgod7lMAyg

    Here are some specific questions that I hope can be answered:

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls
    • You use the gclid itself? How?
    • Is there a new better method for parsing of URLS and using hidden fields settings?
    • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • You dynamically change the landing page?

    Thank you!

    Hi Mike,.

    I'm on the Ops of Eloqua Marketing team and can shed light on some of your questions.  I hope this helps!

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls

    • elqoffer - we use elqoffer to indicate that the offer is valid for adword.  The value we deliver is used for many things.  Of course, we use it for reporting purposes, but we also set up our steps to use this value in a hidden field to redirect to the appropriate page supply once the form and also send the appropriate autoresponder of form processing.  We set up a dropdown list (aka select list) cards offer URL values (for the page of the offer) and another list of choices cards offer values to email ID (for the answering machine).
    • elqchannel - we also usually include a query string for the elqchannel who tells us the General source of the Contact (e.g. Google, Bing, etc.).
    • SLS - is essentially the Source of lead (sls = source of specific lead).  We use it to fill a hidden fields that reach "lead Source - Original" and 'Lead Source - the most recent'.  For us, the source of the specific lead is a very granular (and non-General, such as 'research') but includes a lot of information based on a strict naming convention.
    • That's what we use Eloqua to adwords, but we also use an SEO company to help us optimize our search spend.  To do this, they provide their own tracking code we put on the landing page initial as well as the page of the offer (ie. confirmation page).  To get the code on our LP, we use the cloud "Static content" component that allows you to place any custom code you want in the body of the HTML code.  Unfortunately, I don't have details on what exactly is captured with this code, or how it is used.
  • You use the gclid itself? How?
    • I don't know the answer to this one.  It's someone else on our team that works closely with an SEO company, so I think they know.
  • Is there a new better method for parsing of URLS and using hidden fields settings?
    • YES!  You may have noticed, we have some Javascript on our landing page that does a few things.  First of all, he did a Web data search in Eloqua to see if you are a known visitor and if so, we can pre-fill the form with information we already know the visitor.  The other thing is the JS is populate our hidden fields with the values of query string.  We started to do this before I had a cloud component that eliminates the need for JS custom.  You can use Form Population App to do all that for you.
  • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • I'm not 100% sure I know what you're asking here, but my answer to the previous question can also respond to this one.  Data search Web first checks the Eloqua cookie to retrieve your email address, and then it uses this email address to search for your Contact field values and pre-fill the form.
  • You dynamically change the landing page?
    • We're not changing dynamically the landing page.  Usually, a visitor to click through to an Eloqua email or visit a page PURL.  Dynamically present the offer page based on the value of the query string for "elqoffer."  Looking for an application Cloud released in the coming days that will allow you to place the dynamic content on this initial landing page based on your cookie.
  • The way we structure our campaigns is based on the balance between reporting requirements while maintaining their operational efficiency.  For example, we do want to create a new campaign for each offer that we have.  That would quickly overwhelm our team.  For 2013, we have created 3 campaigns:

    1 research

    2. 3rd party Emails

    3 display ads

    Each of these campaigns have only 1 formula on it (one for research, one for email and display ads).  Each offer has its own landing page (see screenshot below).  The campaign of the report combined with the data of the form layout give us the requirements we need to understand what is working and what is not.

    TIP: If you have custom data objects, you can also consider creating one that seizes all shipments form for each of your forms in 1 place.  This way, you need only 1 set of data instead of individual export for each form of export.

    Example of a search campaign:

  • How to use several query string in a URL?

    Can someone help me with the use of more than a query string in a URL?  I would like to pass on the details of the campaignID (for the CLR) and industry (redirect after form submission) with a click of an email to a landing page.

    Thank you very much

    Alan,

    There are two posts really great on this topic that should help you get there quite easily.

    First, take a look at the position of glreichertof EE12. EE12 - Do-It - Thomson Reuters - Super power of blind forms

    Then visit chorenfto post on the blind forms. Eloqua10: trigger multiple actions with a click-through email (via 'send blind form')

    I have these two positions of reference whenever I need an update on query strings and always answers my questions.

    Good luck.

    Krista

  • You can control a URL in eloqua to add to the query string?

    If I insert a URL in an email, I can't stop eloqua to add additional query string parameters in eloqua.

    I want to make this happen because the URL doesn't seem to work if we add an extra parameter using the query string.

    I had a similar problem recently, and even turn off the tracking doesn't seem to help.  I finally decided to use a shortened URL (bit.ly) and it worked for me.

  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

Maybe you are looking for