PHP: URL variable that is unnamed

Suppose I have
<a href="foo.php/?foo"
How would I get at that URL variable?
If I print_r($_GET), I just get an array....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================

Ahhhh! Thanks.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"David Powers" <[email protected]> wrote in message
news:gfchr4$crv$[email protected]..
> Murray *ACE* wrote:
>> Suppose I have
>> <a href="foo.php/?foo"
>>
>> How would I get at that URL variable?
>
> $_SERVER['QUERY_STRING']
>
> --
> David Powers, Adobe Community Expert
> Author, "The Essential Guide to Dreamweaver CS3"
(friends of ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/

Similar Messages

  • PHP URL Variable from Insert Record Issue

    I have a very simplistic forum style website I have put together. Everything is functionally properly except for one aspect. The basic structure is a page that lists the existing threads (ie: ThreadA, ThreadB, and ThreadC). I have the name of these threads stored in a MySQL database table that is used to generate a repeating dynamic table to grow as the number of threads increases. If the user clicks on one of these links they are taken to a page that displays all of the comments pertaining to that thread. All of the comments are stored in another MySQL database table. I perform a query on this comments page to filter the information in the comments database by the thread name which is passed over from the first page via a URL variable. The link attached to the name of the thread in the repeating table that generates the URL variable is "comments.php?thread=<?php echo $row_threads['threadName']; ?>" This works perfectly, If the user clicks on ThreadB they are taken to the comments page where only the comments pertaining to ThreadB have been filtered and displayed. After the user inserts a comment form ThreadB the comments page reloads displaying the newly created comment.
    Also, on the first page, the user has the option to create a new thread; call it ThreadD. The name of this new thread has to be inserted into two tables; one in the master threads table and one in the comments page any time someone adds a comment. (I'm sure there is a better way to structure this, but this was all I could figure out and for my purposes at hand it is sufficient). When the user is taken to this new comment page I have a query set up to pull the last entry in the threads table from the logged in user, ie the newly created thread topic. I have dragged this query to the page to make sure it is pulling the correct thread heading, and it works just fine. What I'm wanting to have happen is after the user enters the first comment I'm wanting them to be redirected to the main comments page with their new comment listed; giving the illusion that the new comment and existing comments page are the same. I'm trying to pass the newly created thread name, ThreadD, in the URL to the main comments page just like I do if they select it from the existing threads page. Under the insert record wizard I click the 'browse' button to select the comments.php page. I then select 'parameters' to add the thread name query as the URL parameter. The generated code is "comments.php?thread=" . $row_threadName['threadName'] . "". The user does go to the main comments page but the URL variable is not coming with it. What I'm left with in the address bar is ..."/comments.php?thread=&" , but it should be ..."comments.php?thread=ThreadD". I tried copying and pasting the URL link from the existing threads page since that works perfectly, and when I do that the main comments page shows up blank after being redirected from the new comments page. If I hard code this, for testing purposes, into the redirect after insertion section (ie: "comments.php?thread=ThreadD") everything works perfectly and the URL in the address bar of the main comments page is "...comments.php?thread=ThreadD&" I noticed the extra "&", but didn't give it much thought since the site is giving me the behavior I'm looking for. My question is, how do I get this new comment page to pass the variable of the newly created thread name to the main comments page to behave like it does when the thread is selected from the list of existing threads? I know it has to do with how the URL variable is either being generated or built from my query, or how I have it listed in the redirect section of the insert wizard, but I can't figure out where I am going wrong. Please let me know if there are any questions or if I need to clarify any aspect. Any and all help is always appreciated. Thank you.

    Ok, so just to summarize so I am understanding this correctly.  You have an ordering page for tires/wheels.  A customer places an order for tires/wheels and the data is submitted successfully and this includes a symbol for measurement (in.).  But on another summary page the symbol is returning a blank value.
    If this is correct we need to see:
    - First, the code that is inserting the symbol to the database table in question
    - Second, the query and code where you are printing the data to the screen.

  • Display all database results with URL variable?

    Hi,
    I am using PHP MySQL
    I have a database that is Alphabetically ordered. I am trying to create a dynamic page that will only show A, B, C, ... and so on. I do this by Creating links named after the letters in the Alphabet. I have a recordset that filters the table using a URL variable that uses Type. Unfortunately when I click on the link it only displays the first record that contains an A. Not all the records that contain  A.
    For example:
    I have a link that is just "A". Its link is ?Type=A. In the database table their are 3 records that contain A under Type, but when I click on it only one record containing A is displayed. I hope you are following this.
    If you want a direct reference to what I am doing go to:
    http://cwhazzoo.com/gamelinktesting.php
    This is how my database is designed:
    ID (primary key)
    Name
    Letter
    0001
    Example A
    A
    I want to be able to show only the selected letter of records using only one page. Thanks!

    >Should I use the repeat region?
    Yep. That's what it's for.

  • Can you pass an array URL variable

    Hi,
    Doing a form which I want to validate, then re-display with
    error messages and the keyed data still in place should there be
    errors, or go onto a second form if all ok.
    I have tried to use <form
    action="<?=$_SERVER['PHP_SELF']?>" but as the various
    outcomes result in different screens I can't see how to do it
    without having reams of duplicate code - I couldn't make it work
    satisfactorily anyway.
    So I decided to do it in two stages - form (user screen) + a
    separate validation routine which passes validation results back if
    there are errors by calling the first screen but with URL variables
    to trigger process variations or go onto screen 2 if all ok.
    But I'm struggling with this .. two questions:
    i) Ideally I would like to use a session variable to pass
    actual error messages back to screen one in the event of errors but
    if I undertand things correctly (which is by no means certain)
    $S_Session is already an associatve array so it wouldn't be so easy
    to just add a variable number of messages to it and then know what
    you are unpacking elsewhere ... do you know what I mean?
    Perhaps if I give you my second question it may help
    illustrate what I'm going on about in part 1
    ii) The way I have tried to do it is to set it up as an array
    ($ERRORS) in the validation module and then added a text string
    each time I hit a specific error. The hope was that I could then
    send this back via the URL for further process but I'm getting
    syntax problem so maybe this is not possible .... a brief example
    Input Form php:
    $ERRORS = array();
    $ERRORS = $_GET['errors']
    if (sizeof($ERRORS) > 0) {
    echo "<p class=\"val_err_hdr\"> *** Validation
    error(s) - please correct the entries and try again ***
    </p>";
    blah blah
    Validation php:
    $ERRORS=array();
    if(!$loginFoundUser) {
    $ERRORS[] = "This e-mail address entered has already been
    registered on our database - if you have already registered you
    can"; }
    header("Location: input.form.php?errors=$ERRORS");
    When I run this I get a syntax error 'unexpected T_IF' on the
    'sizeof'' function condition.
    Any help much appreciated.

    .oO(patricktr)
    > Doing a form which I want to validate, then re-display
    with error messages and
    >the keyed data still in place should there be errors, or
    go onto a second form
    >if all ok.
    OK, quite common.
    > I have tried to use <form
    action="<?=$_SERVER['PHP_SELF']?>"
    Avoid short open tags, they are unreliable. Use "<?php
    print " instead
    of just "<?=" to be safe and independent from the server
    configuration.
    >but as the
    >various outcomes result in different screens I can't see
    how to do it without
    >having reams of duplicate code - I couldn't make it work
    satisfactorily anyway.
    What's a "screen" in this case? Just another part of the form
    or a
    completely different page?
    > So I decided to do it in two stages - form (user screen)
    + a separate
    >validation routine which passes validation results back
    if there are errors by
    >calling the first screen but with URL variables to
    trigger process variations
    >or go onto screen 2 if all ok.
    Don't use URL parameters in such a form processing scenario.
    Use a
    session instead, that's what they are for. The length of URLs
    is limited
    and there are things you simply don't want to pass between
    pages, but
    keep on the server instead.
    > But I'm struggling with this .. two questions:
    >
    > i) Ideally I would like to use a session variable to
    pass actual error
    >messages back to screen one in the event of errors but if
    I undertand things
    >correctly (which is by no means certain) $S_Session is
    already an associatve
    >array so it wouldn't be so easy to just add a variable
    number of messages to it
    >and then know what you are unpacking elsewhere ... do you
    know what I mean?
    The $_SESSION array itself is strictly associative, the used
    indexes
    must be strings or the serialization of the session data will
    fail.
    But if course you can always do things like this:
    $_SESSION['errors'] = array();
    $_SESSION['errors'][] = 'something went wrong';
    > Perhaps if I give you my second question it may help
    illustrate what I'm going
    >on about in part 1
    > ii) The way I have tried to do it is to set it up as an
    array ($ERRORS) in the
    >validation module and then added a text string each time
    I hit a specific
    >error. The hope was that I could then send this back via
    the URL for further
    >process but I'm getting syntax problem so maybe this is
    not possible .... a
    >brief example ...
    As said above - use the session instead.
    > Input Form php:
    > $ERRORS = array();
    > $ERRORS = $_GET['errors']
    There's a ';' missing at the EOL (this causes the error you
    mentioned
    below).
    Just a naming hint: Variables should not be named all
    uppercase (except
    for the predefined superglobal arrays). Such names should be
    reserved
    for constants. The most common style looks like this:
    myNiceFunction()
    $myNiceVariable
    MY_NICE_CONSTANT
    > if (sizeof($ERRORS) > 0) {
    if (!empty($_SESSION['errors'])) {
    > header("Location: input.form.php?errors=$ERRORS");
    The Location URI must be absolute including scheme and
    hostname. This is
    required by the HTTP spec:
    header("Location:
    http://$_SERVER[HTTP_HOST
    But I'm still not sure why you would need this redirect. The
    entire
    handling of a form (validation, processing) can be done on a
    single
    page. Only if the processing succeeds, you might want to
    redirect to
    some result page.
    Micha

  • Url variable doesn't work in IE

       Hey guys, my page, www.powerhouse.com/Products/Inventory.php I have a bunch of links that reload the page with a url variable.  If FF 3, this works fine, yet in IE 8 the page does not load.  My error log has the following error:
    script '/var/www/powerhouse/public_html/Products/inventory.php' not found or unable to stat
    what stupid IE Hack do I need to get this to work?

    PHE Admin wrote:
    My error log has the following error:  
    script '/var/www/powerhouse/public_html/Products/inventory.php' not found or unable to stat
    what stupid IE Hack do I need to get this to work?
    You don't need any IE hack. I have just tested the page in both FF and IE8. It works just fine in both.
    However, it's very noticeable from your error log that it refers to inventory.php (all lowercase), whereas the actual page is Inventory.php (initial cap). The other thing that's noticeable is the path, which indicates your server is running on Linux, which is case-sensitive.
    From this, I conclude that you originally coded the page using inventory.php, and later updated it. This suggests that IE8 is probably still using a cached version. Clear your cache, and the problem will probably go away.

  • Dynamic list to generate url variable

    Hello, I am using a dynamic list to pull product codes from a
    database. I then want to pass the code into a url variable when it
    goes to the results page. This is so customers can chose which code
    they want to go to a detail page about. I already have the dynamic
    list working, I just can not figure out how to embed the selected
    code into a url variable. For example I want it to do the
    following:
    sitename.com/search.php <--- here is where you start and
    make the selection then it brings you to:
    sitename.com/details.php?code=202 <---- code202 was
    selected on previous page in dynamic list.
    I know how to do it by pulling results from a database and
    generating links for each one, but I need to do it from a dynamic
    drop down list.
    Here is the coding that I was trying to use:
    Thank you for your assistance.

    Sorry, dumb error on my part. Used method=post rather then
    get.

  • How to use url variables?

    for example: www.blah.com/blah.php?id=1
    in this case, the url variable passed is id with a default value 1.
    what I am trying to do is to make the webpage display different things depend on the id value.
    so, a basic syntax problem... is this the correct way to do this?
    <body>
         switch (id)
              case 1: echo("something");
              case 2: echo("something else");
    etc
    (or am I missing some dollar sign or something?)
    also, how do i declare a variable in the body?
    just...
    int someVar;
    like in java?  or?

    Just so you'll know, such questions are more suited for the AppDev forum -
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development
    I'll answer here, but in the future, new threads should be begun over there.
    Assuming PHP, in the head of the page you would have -
    <?php
    $id = isset($_GET['id'])?$_GET['id']:FALSE; // This loads the variable $id with the value of the URL variable
    ?>
    Then you could have -
    <body>
    <?php
    switch ($id) {
              case '1':
                   echo("something");
                   break;
              case '2':
                   echo("something else");
                   break;
    ?>
    (I forget whether that value is passed as a string or a number, so you may have to adjust the case statements.)

  • Passing URL variable on login redirect

    I first want to say thank you for all the great help I have received on these forums over the past couple months - it has been very helpful and saved me countless days.
    Saying that, I do have another problem. I would like to pass a URL variable to the success redirect page when users login. I want to have a recordset on the login page that retrieves an issueid for the most current article and then passes it on the URL to the page that is loaded when a user successfully logins. I have tried adding the recordset to the login page and then changing the URL for the successful redirect on the tNG_config.inc.php file to:
    $tNG_login_config_redirect_success["5"] = 'dashboard_issue.php?issueid=' . $currentIssueId . '';
    but it isn't working. I have a tried as many variations of that syntax as I could think of or find searching online but still no luck. There might be a much easier way to do this but the way the dashboard_issue page is set up is that it is looking for the issueid in the url. The benefit being that the same page can be used for any issue that the user wants to change to once he is logged in.
    I hope this is making some sense. If not please let me know.
    Thanks!
    -Dan

    The most current issue is actually just the one that is closest to today's date in the future. Users are free to add as many issues as they want in the past and future so I really can't go by issueid to sort since it might come in any order. Right now I have the most current issue found with this query:
    SELECT issueid, DATE_FORMAT(date, '%W, %M %d, %Y') 'date' FROM issues WHERE date >= CURDATE() LIMIT 0,1
    I will try to explain the problem a little more. This works great for what I need to do for this page as soon as they log in since it doesn't even look at the URL at all. If a user wants to go to a different issue I display a different page (which is this page just renamed) where the recordset looks at the URL issueid variable instead of the most recent issue recordset. The problem with this setup is that it is hard to maintain 2 pages all the time and would be great if I can just have one page to handle everything.
    Is it possible to do something like this?:
    IF issueid url variable EXISTS THEN use recordset1
    IF issueid url variable DOES NOT EXISTS use recordset2
    with recordset1 being the one that grabs the most current issue and recordset2 being the one that pulls the issue information based on the url issueid.

  • Cant make a url variable in CS6

    I hope someone can help me... 
    I'm attempting to add a url variable binding to a PHP document, but  after each time I open the menu, type in my name and press OK, it does  not show up in my Bindings box.
    Can anyone tell me what I'm doing wrong?

    Miss Malek,
    Welcome to our humble abode.
    You have an advantage over us in that you are a witness to what is going on. We are rearing to help you but with the info that you have supplied, you are making it impossible for us.
    As a starter, please copy and paste the PHP document here for us to see and we will try to take it further.

  • Passing URL Variables, Can "Or" statement applies?

    in my php data, i have 2 catagorical data
    cat1
    cat2
    most of the time, since most items have single catagory, i
    can just pass 1 url variables, for ex: ?cat1=5
    but on rare occasions, some of my items will have 2
    attributes, making it necessary to filter not only cat1=5, but
    maybe cat2=5 as well.
    the way you do "and" statement is just with ampersand sign
    &, but how would you do "or" statement?
    (or am i totally misinterpretting the way that URL variables
    work? i also thought that the filtering process might occur at the
    webpage, and the & statement merely passes 2 or more variables,
    while the webpage decide what to do with them. am i correct in this
    statement instead?)
    thanks again!
    p.s. do you get anything when i declare you the official
    answer? like, is there a forum level up thingy which you become
    like master guru of dreamweaver helper or something...? sort of
    like how they do it in yahoo answers

    Bih Wang wrote:
    > the way you do "and" statement is just with ampersand
    sign &, but how would
    > you do "or" statement?
    You can't do an "or" statement in URL variables. The query
    string (after
    the question mark) is a series of name/value pairs separated
    by ampersands.
    > (or am i totally misinterpretting the way that URL
    variables work? i also
    > thought that the filtering process might occur at the
    webpage, and the &
    > statement merely passes 2 or more variables, while the
    webpage decide what to
    > do with them. am i correct in this statement instead?)
    It's the script inside the web page that decides what to do
    with the
    variables.
    > p.s. do you get anything when i declare you the official
    answer? like, is
    > there a forum level up thingy which you become like
    master guru of dreamweaver
    > helper or something...? sort of like how they do it in
    yahoo answers
    This forum doesn't have a points system, but we're moving to
    a new forum
    in a couple of weeks' time, where you can give points.
    However, gaining
    points won't automatically give people any titles or status.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Active Content Extension w/ URL Variables

    Hi,
    I am using the Flash Active Content extension and I need my
    .swf to get a variable dynamically from my URL - how do I do
    this?

    I am using the Flash Active Content extension - for more
    info:
    http://www.adobe.com/go/7c29e252
    This extension is a workaround so the user does not have to
    click in the flash area to activate it for use, due to the IE
    Active Content Update. It uses an external .js file to embed the
    .swf file.
    What I am asking is if my URL variable changes from
    "www.website.com/index.php?myURL=red" to
    "www.website.com/index.php?myURL=blue", how do I get the PHP to get
    that information?

  • Defining a spry data set from a url variable

    I am developing a family web site that, among other things, uses a single 'recipe' page to display recipes from different xml files as called by a url variable (e.g. ?xmlFile="{url}"&recipeName="{name}") from a summary page.  I can get the recipe name to reproduce using a $_GET php function, but I cannot establish the data set that way.  How can I define the data set from the incoming URL variable?  The necessary files are:
    The starting point from which I send the selected URL variable (use the scampi recipe)  http://ebogott.com/recipeBox.php.
    The file that is generated is http://ebogott.com/recipe.php?XMLfile=GrilledScampiOnAngelHair.xml&recipeName=Grilled%20Sh rimp%20Scampi%20on%20Angel%20Hair%20Pasta
    This methodology will allow me a number of cascading selections.  I know this is not unique.  I just haven't figured it out.
    don Carlos de la Playa

    don Carlos,
    The following shows the strength of the Spry framework. All very easy and simple.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var dsRecipes = new Spry.Data.XMLDataSet("recipes/recipes.xml", "recipes/recipe");
    var dsIngredients = new Spry.Data.XMLDataSet("recipes/{dsRecipes::url}", "recipe/ingredients/ingredient");
    var dsProcess = new Spry.Data.XMLDataSet("recipes/poultrySoup.xml", "recipe/process/element");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="dsRecipes" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="dsRecipes" spry:setrow="dsRecipes" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
      </div>
      <div spry:detailregion="dsRecipes dsIngredients dsProcess" class="DetailContainer">
        <div class="DetailColumn">{@genre}</div>
        <div class="DetailColumn">{@serves}</div>
        <div class="DetailColumn">{@time}</div>
        <div spry:repeat="dsIngredients">
          <div class="DetailColumn">{dsIngredients::qty}</div>
          <div class="DetailColumn">{dsIngredients::measure}</div>
          <div class="DetailColumn">{dsIngredients::item}</div>
        </div>
        <div spry:repeat="dsProcess">
          <div class="DetailColumn">{dsProcess::element}</div>
        </div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    You will have to give a bit of style to the detail region.
    I hope this helps.
    Ben

  • Unable to get URL Variable

    I've seen many posts about URL Variables, and I've tried implementing the solutions, but nothing seems to be working, so I'm hoping that someone out there might be able to help me with my situation.
    I have built a JSP page in JDeveloper. The page must identify the visitor using an id (passed as a url variable) as well as an account_id entered by the user on the page. I've created a procedure in my ModuleImpl.java file that receives both the url variable and account_id and then calls a pl/sql transaction I've created in the database.
    Thing is, if I take the procedure, which I've allowed to be shared to the Client interface, and plop it on my JSP Page, I get two inputs, one for the account_id and one for the url variable, meaning the user has to enter the url variable in the field for the procedure to work.
    I've tried modifying the value of the field and setting it equal to #{param.id}, but when I run the page, the input becomes a display field and is not sent to my java procedure. I've also tried the FacesContext way of getting a url parameter, but I can't get that to work in my java file.
    What I would like to have (or at least what my intensions were when I started this project) is to have the url variable field be hidden and automatically populated with the url variable so that when the customer enters their account_id and clicks submit, both the account_id and url variable are passed.
    Any idea on how to implement something like this?

    You can try setting the value of the parameter in the
    pagedef.xml file for your page directly using
    expression language.Thanks for your reply! I did that, or at least I think I did. Here is the NameData tag in my pagedef.xml file:
    <NamedData NDName="web_hash" NDType="java.lang.String"
    NDValue="${bindings.save_new_password_web_hash}"/>
    what I've tried doing, is changing the NDValue to the three values below, all of which didn't work (returned null):
    NDValue ="${param.id}"
    NDValue ="#{param.id}"
    NDValue ="${facesContext.externalContext.requestParameterMap['id']}"
    is there a different expression I should be using?
    Also, I will take a look at the solution you likend to.

  • Any way to add a URL variable to EVERY SINGLE url in the site, all at once?

    Hi,
    I'm managing a web application, and we're looking at changing from using cookies, to passing session variables in every HTTP request to maintain session information.
    So basically, I have a variable that needs to be appended to every single URL in the entire site - not just in links, but in cflocation tags etc.
    Is there any way to just ADD information to the end of every URL, without otherwise CHANGING anything in that URL?
    This site is hand-coded, but I have access to Dreamweaver CS3, so I thought I'd ask if it was possible - it'd save me a bunch of time!
    Thanks,
    Joe

    Hi, thanks for the reply.
    I am familiar with DW's basic find/replace functions, but I don't think it'll work in this case.
    See, the URL's are almost ALL unique.  Many of them already include other URL variables... This is a pretty server-intensive web application, with a lot of data manipulation and database reads/writes.  
    So I was hoping for a function that could find all URL's (it could just look for a string containing .cfm), and append the code to include one more variable to the URL.
    I see there's a way to use a regex in the find/replace tool, but it'd probably take me as long to write and debug the regex as it'd take to manually mod the URLs lol.
    Thanks for any ideas!
    On Jun 24, 2010 10:57 AM, SugnaShane &lt;[email protected]&gt; wrote:
    It depends on how unique each URL is but you could try the Find and Replace function.
    Highlight code in code view
    Right Click
    Choose "Find and Replace
    You can then write the replace code and target a page or entire directory or site.

  • Using URL variable to set initialy selected ds row

    Hello everyone,
    Could anybody suggest a solution or point me to a working
    demo of a script that processes a URL variable and set the current
    row accordingly. I am trying to pass a @id of a particlar row in a
    URL variable to identify a particluar row, I want to be selected
    initially.
    Thanks,
    Nick

    Hy guys,
    Just figured it out myself. Here is the script:
    <script type="text/javascript">
    // define your datasource. I have called it dsGallery. This
    name is used later in the script a few times
    var dsGallery = new Spry.Data.XMLDataSet("gallery.xml",
    "/gallery/photos/photo");
    dsGallery.addObserver({ onPostLoad: function(ds, type) {
    var strReturn = "";
    var strHref = window.location.href;
    if ( strHref.indexOf("?") > -1 ){
    var strQueryString =
    strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length;
    iParam++ ){
    if (
    aQueryString[iParam].indexOf('id' + "=") > -1 ){
    var aParam = aQueryString[iParam].split("=");
    strReturn = aParam[1];
    // look if a row with a matching @id is present in the
    datasource
    var row = dsGallery.findRowsWithColumnValues({"@id":
    strReturn}, true);
    // If we have a matching row, make it the current row for the
    data set.
    if (row) dsGallery.setCurrentRow(row.ds_RowID);
    break;
    </script>
    Thanks to the folks whose scrips were really helfull in
    building this one.
    Nick

Maybe you are looking for

  • Using multiple iPods on same computer

    I connected another iPod to my computer but can only access my original Music Library. Is there a way to edit the Music Library on the additional iPod?

  • CS6 and RAM (Win7 64bit)

    Am getting ready to get my next computer started this coming week and now trying to see if 16 Gb RAM is sufficient.. in other words is 32 Gb RAM worth an extra $120 in terms of performance. Will be using Intel 3770K CPU. Major usage for Pshop is digi

  • JSF - Chart (Apache Trinidad Library problem)

    hi, i did instructions from this page: http://free-jsf-components.net/install_guides/myfaces-trinidad.html My jsp is: <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h

  • Recreating dropped partition

    Hi all, I have one table with two date range partitions (Part_1 - date value less than Jan 2009, Part_2 date value less than Feb 2009). If I drop the Part_1, can I recreate the same? When I trying to recreate I m getting the following error ORA - 140

  • HT5312 I can not use my account to buy applications inside because I forgot the answers safety questions

    I can not use my account to buy applications inside because I forgot the answers safety questions