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

Similar Messages

  • Pass URL Variables

    Hello -
    Thanks for Spry!
    I'm running into a problem that probably exists because I've
    cribbed a bunch of code from your demos that I don't fully
    understand. I have a set of photo galleries, which I've set up like
    the demo. A test link is here:
    http://www.clubmax3d.com/photos_test.cfm
    and it works wonderfully. When you choose a new gallery from
    the drop down, everything loads up as it should.
    However, I want to be able to call this page with a specific
    gallery chosen - i.e. with a certain row preselected from the
    dsGalleries. I actually do have this working, but after the page
    appears with my chosen gallery selected, the drop down menu no
    longer works to select the other galleries. Test this by going to:
    http://www.clubmax3d.com/photos_test.cfm?g=2
    I think the page breaks because I've set up an onDataChanged
    observer for my dsGalleries so that I can change the preselected
    row on page load (or really, when the data first loads). But then
    this onDataChanged observer sticks around, and interferes with the
    onchange function called by the select drop-down menu.
    Can I remove the onDataChanged observer after the first call
    to it is made?
    Or a way to reconcile my observer with the "onchange"
    function?
    Or is there a better way to pass my variable to the page?
    Right now it uses coldfusion like this:
    <cfoutput>
    <script>
    var galID = #URL.g#;
    </script>
    </cfoutput>
    <script type="text/javascript">
    if (galID){
    dsGalleries.addDataChangedObserver("myObserver", {
    onDataChanged: function(ds, type) {
    dsGalleries.setCurrentRowNumber(galID)} })
    </script>
    Thanks very much in advance for any advice (and please
    forgive the newbie code)
    p.s. if you have anaglyph 3D glasses put them on for some fun
    :)

    Hi ImagicDigital,
    You can actually display a "Loading" message/markup today if
    you know how to do some programming.
    You just have to register an observer on either the region or
    the data set, depending on what you want to trigger the status
    message.
    The state notification mechanism that Don Booth has been
    mentioning in some of his posts/replies has to do with a feature we
    are implementing that will allow folks to mark pieces of
    spry:regions as markup to use automatically for a given state, so
    folks don't have to program anything.
    --== Kin ==--

  • 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.

  • Passing url variable - what am I doing wrong?

    I've made a form and am attaching the code.
    Basically I am trying to get a list of offices and select one
    (which I am able to do when I publish and run the webpage/form).
    However, it always passes the value of "1" (the first record)
    to the next page (no matter what office I select from the drop down
    menu). I've tried the other choices under the lightning bolt, but
    those won't pass anything to the next page.
    Help!

    Why are you passing OfficeID as an URL variable in the form
    action when it is already a FORM variable (the SELECT form field)?
    The selected OfficeID will be passed to test2.cfm in the FORM
    scope.
    Also, you have named the submit button OfficeID, too. Form
    field names need to be unique, except possibly radio buttons and
    checkboxes.

  • Passing a variable to select statement

    Hi there,
    I have a selection screen on which you can choose which table do you want to display.
    I store the name of the selected table in a variable tab_name.
    I want to use something like that:
    data: tab_name(40).
    select * from tab_name
        into gt_master.
    endselect.
    But it did not allowed because tab_name is not a database table.
    Is it possible to pass the table name in a select statement using a variable?

    Hello
    Yes it is posible you can use a dynamic select...
    Try this:
    DATA  tabname(10).
    DATA: BEGIN OF wa,
            id   TYPE scustom-id,
            name TYPE scustom-name,
          END OF wa.
    tabname = 'SCUSTOM'.
    SELECT id name INTO CORRESPONDING FIELDS OF wa FROM (tabname).
      WRITE: / wa-id, wa-name.
    ENDSELECT.
    or
    CONSTANTS: flight_tab_name(30) VALUE 'SPFLI'.
    DATA: from_clause TYPE STRING.
    DATA: BEGIN OF wa,
            name(20) TYPE C,
            connid   TYPE spfli-connid,
          END OF wa.
    CONCATENATE flight_tab_name ' AS t1'
                ' JOIN scarr AS t2 ON t1carrid = t2carrid'
       INTO from_clause.
    SELECT t1connid t2carrname AS name
        FROM (from_clause)
        INTO CORRESPONDING FIELDS OF wa.
      WRITE: / wa-name, wa-connid.
    ENDSELECT
    Hope this helps
    Gabriel

  • CFLOCATION not passing URL variable

    I have a simple CFLOCATION redirecting to a page with a fixed value of 15 as id
    <CFLOCATION URL="http://www.MYWEBSITE.com/index.cfm?id=15">
    When I hit the page locally it works fine, the receiving page can see the value of 15 in id.
    However, when I run the same page on the server I get an error that the url.id does not exist
    Not sure what is causing this, could it be a config issue in the CF admin?
    Thanks
    Mark

    Just after posting this I managed to find some sort of resolution to the problem, but it does concern me that this issue could be on other sites now. I found a link that suggested if a session was set and the cflocation was used all within one page then problems with variables could occur
    http://helpx.adobe.com/coldfusion/kb/missing-session-variables-using-cflocation.html
    I do have an application.cfm that sets a session, and when I hit the page the user does go right to the cflocation at the same time.
    I placed an empty application.cfm into the directory so that it did not go one level up and set the session from the main application.cfm and now the variable does indeed pass through.
    What I can't understand is why it works locally but not on the server
    Anybody have any other input for this problem?

  • JS popup and passing URL variables or ?

    Hi ...
    The following JS script opens a new window and that window is
    a template called "viewer.cfm". The images are all going to shown
    in that template (viewer.cfm) ... eg: HPIM0877.JPG, HPIM1009.JPG
    I have to pass variables from any pages that have the
    following link (below) to "viewer.cfm".
    I will have maybe 40 images to deal with but I am getting
    stuck on a universal #variable# to display the images and passing
    them.
    I have not included any code on the receiving template
    "viewer.cfm" as I am a little stuck.
    Thanks ...
    EXAMPLE
    <cfoutput><A HREF="javascript:void(0)"
    onclick="window.open('viewer.cfm?#HPIM0877.JPG#',
    'welcome','width=580,height=440,menubar=no,status=no')">
    courses</A></cfoutput>

    On the template with the JS pop up window. (index.cfm)
    <cfset
    peaks="/motorcoach/ca/images/popup/HPIM1070.JPG">
    <cfoutput><A HREF="javascript:void(0)"
    onclick="window.open('viewer.cfm?image=#peaks#',
    'welcome','width=650,height=500,menubar=no,status=no')">
    peaks</A></cfoutput>
    On the template which will produce the image (viewer.cfm)
    <cfparam name="url.image" default="0">
    <cfoutput><IMG SRC="#url.image#" width="550"
    height="413" class="image"></cfoutput>
    Cheers

  • Passing url variables, url stops at first &

    We are making a url in a string and putting it in a form tag a lot like this
    <cfset a='http://a/b/c?x=3&y=02'>
    <cfoutput>
       <form action="#a#"method="get">
           etc
       </form>
    </cfoutput>
    the url in the browser address box stops at the 1st ampersand in the url string
    ***how can we fix this?
    it is an emergency

    Me too, pass form elems and method is post. This situation I have to use method of get though, no control over situation. It's not an emergency anymore since the urls passed ok as links instead of buttons. Hope to have as buttons later. Thank you for answering and for advice.

  • Passing url variable

    My web page is in two panels. "A" lists company names. "B"
    show the details in an Accordian panel (address, phone etc) when a
    name in "A" is clicked. To update the the file, a button "Update
    Data" opens a php dynamic form to update record with an "id" of
    {id}. On submission of the form, we go back to the selected row
    {ds_RowID}.
    PROBLEM: This all works in Safari and Firefox, but on a
    Windows box the "Update Data" button has no effect. Is there a URL
    encode function or something that I am missing?
    Test-Wesite: I can send privately the online example.
    <a href="updtform.php?id={id}&amp;row={ds_RowID}">
    <input name="butt_updt" type="button" value="Update Data"
    /></a>

    The problem is that in some browsers like IE, the button
    click does not propagate upward past the button to the link.
    Instead of wrapping your buttons with a link, why not use an
    onclick handler? Instead of this:
    <a href="updtform.php?id={id}&amp;row={ds_RowID}">
    <input name="butt_updt" type="button" value="Update Data"
    />
    </a>
    Do this:
    <input name="butt_updt" type="button" value="Update Data"
    onclick="window.location='updtform.php?id={id}&amp;row={ds_RowID}';"
    />
    --== Kin ==--

  • Bind Variable in SELECT statement and get the value  in PL/SQL block

    Hi All,
    I would like  pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
    Please seee below
    I want to get the below value
    Expected result:
    select  distinct empno ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    100, HR
    select  distinct ename ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    TEST, HR
    select  distinct loc ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    NYC, HR
    Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
    Please suggest
    ----- TABLE LIST
    CREATE TABLE EMP(
    EMPNO NUMBER,
    ENAME VARCHAR2(255),
    DEPT VARCHAR2(255),
    LOC    VARCHAR2(255)
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
    COMMIT;
    CREATE TABLE COLUMNAMES(
    COLUMNAME VARCHAR2(255)
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
    COMMIT;
    CREATE TABLE DEPT(
    DEPT VARCHAR2(255),
    DNAME VARCHAR2(255)
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    COMMIT;
    PL/SQL BLOCK
    DECLARE
      TYPE EMPCurTyp  IS REF CURSOR;
      v_EMP_cursor    EMPCurTyp;
      l_col_val           EMP.ENAME%type;
      l_ENAME_val       EMP.ENAME%type;
    l_col_ddl varchar2(4000);
    l_col_name varchar2(60);
    l_tab_name varchar2(60);
    l_empno number ;
    b_l_col_name VARCHAR2(255);
    b_l_empno NUMBER;
    begin
    for rec00 in (
    select EMPNO aa from  EMP
    loop
    l_empno := rec00.aa;
    for rec in (select COLUMNAME as column_name  from  columnames
    loop
    l_col_name := rec.column_name;
    begin
      l_col_val :=null;
       l_col_ddl := 'select  distinct :b_l_col_name ,pr.dept ' ||'  from emp pr, dept ps where   ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
       dbms_output.put_line('DDL ...'||l_col_ddl);
       OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
    LOOP
        l_col_val :=null;
        FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
        EXIT WHEN v_EMP_cursor%NOTFOUND;
          dbms_output.put_line('l_col_name='||l_col_name ||'  empno ='||l_empno);
       END LOOP;
    CLOSE v_EMP_cursor;
    END;
    END LOOP;
    END LOOP;
    END;

    user1758353 wrote:
    Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
    As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
    However, the data structures are just that - structured. Logical.
    Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
    There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model.

  • 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

  • How can i pass a variable instead of a table name in the Select statement.

    Dear all
    how can i pass a variable instead of a table name in a select statement ?
    Example :-
    Begin
    P_get_procedure_tname (aap_name,otable_name);--It will take an application name and will return a table name
    Select col1 into ocol1
    from  ---- here i want to pass the variable OTABLE_NAME
    End;How can i pass this ?

    Hi,
    You can use dynamic sql.
    EXECUTE IMMEDIATE 'SELECT COL1 INTO ' || OCOL1 || ' FROM " || OTABLE_NAME;
    {code}
    cheers
    VT                                                                                                                                                                                                                                                                                                   

  • Import statement: pass parameter or variable in import statement ??

    Hi All..
    Is there a way to pass parameter or a variable to a url in the import statement..
    I'll be using a url in the import statement, the url will be having a dynamic .rtf file...something like
    <?import:http://#server#:#port#/xmlpserver/<mySubTemplate>.rtf?>
    where <mySubTemplate> is dynamic..
    I've been searching this thread for a while now and ended up close...
    Import sub template dynamically
    Thanks in Advance..

    Have you tried replacing the mySubtemplate.rtf part with a variable, or replace the entire URL using a variable? Try using the same construct from this example in the Report Designer's guide (page 7-14, 10.1.3.4).
    In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
    following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full
    URL to the image.
    You can also build a URL based on multiple elements at runtime. Just use the
    concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
    where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML
    file that hold the values to construct the URL.
    This method can also be used with the OA_MEDIA reference as follows:
    url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}

  • How to pass presentation variable in column Fx using GO URL

    Hi All,
    I want to show a download link directly using go url .
    In my dashboard prompt i am using some presentation variable .
    those variables i am using in the report's column formula .
    When i am applyning the prompt that it is not applying in the column Fx. so when i download the excell it shows same data for all the option choosen.
    If anybody knows the syntax please help.
    Thanks ...

    Hi,
    Like this you can pass presentation variables to the columns using Go URL
    '<a href=saw.dll?Dashboard&PortalPath=/shared/Test/_portal/Test%20KPIs&Page=Page1&Action=Navigate&col1="Dim%20Country"."Country%20Name"&val1='||'@{PV_Contry'||'>'||'Country'||'<\a>'
    Please use backslash in anchor tag end. Since here it is not accepting I am using forward slash.
    Thanks
    Vino

  • Passing two variables in the body of the URL using the go to detail page SB in ASP

    Hi all,
    Would appreciate your assistance with the following, I'm
    trying to set up a go to detail page sb that passes two variable in
    the body of the URL rather than the standard one.
    The code i've tried is -
    <td><A HREF="gggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>&amp;"PCL1ID=" +
    othermenutwo.Fields.Item("PCL2PC1ID").Value
    %><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
    Where the PCL1ID and the PCL2ID are the variables
    The normal code generated by the go to detail page sb with
    one variable is -
    <td><a href="ggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
    Unfortunatley my code tweaking isn't working as the second
    variable isn't being sent, any help would be gratefully appreciated
    Thanks

    Instead of using DW's 'go to detail page' option, simply set
    up the link the manual way in DW using the Link browser. Select the
    file you want to link to and then use the parameters button at the
    bottom of the 'Select File' dialogue to set the parameters to be
    passed with the link. You can then manually set the name of the
    parameter to be passed and then select its value from a recordset.
    The key thing is that you can set as many parameters as you like,
    so you can set both the parameters you want.
    On the detail page you then filter by the parameter name you
    chose (or both).
    Personally I always code links this way rather than using the
    go to detail page option as you get much better control of what is
    going on.

Maybe you are looking for

  • Anyone using Blackmagic Intensity Pro with Premiere CS4

    I've looked through the threads and have seen similar postings, but no real good answers. Is anyone using Blackmagic Intensity Pro to viiew timeline on a HDTV using the HDMI connector? I purchasedf the Intensity Pro and can't get it to work with CS4.

  • Artist sort order problem

    Hi. I have music sync'd via iTunes Match from my laptop to my iPad and to my iPhone. The names and order appear correct on both the laptop and on the iPad but on the iPhone several artists are either shown in all lower case or the last name will be u

  • AR Customer Aging - Calculations

    Hi I wanted to customize the customer aging report in AR, i was using the ORACLE API to calculate the aging, the API does not take care of the receipts, and reverse amout, I ended up in defining a new query for calcuating the receipts and reversal am

  • OBIEE 11g pivot dumb question - changing order of measure columns

    Hi, dumb question, in OBIEE 11g, if using a table view it is easy for end users to drag and drop the measure columns in any order desired. Is there a way for end users to change the order of measures when using a pivot view? Thanks, Scott

  • Will my Ipod work?

    I recently purchased an Ipod Video in the US for my cousin in China. I was wondering if it will be compatible with the computers in China, and if it is the right format. Any help will be appreciated.   Windows XP