Using variables in url

I have created a php storing values in a mysql database.  I animate I call this php using window.open:
window.open("http://localhost/send_and_update.php?Tid=26&dBA=78 ", "_self");
This works fine, the dataset 26 78 is saved in the database.  But now I want to send values from variables in  i animate.  I try this:
Var time=22
window.open("http://localhost/send_and_update.php?Tid=time&dBA=78 ", "_self");
This won't work.  Any suggestion?
Svein-Tore

Hi Darell!
Now I have tried it, unfortunately it won't work.....  The browser gives me
the followoing error:
Unknown column 'time' in 'field list'
This is in fact an error from php, not from animate.....  Maybe  I have to
do this in a totally different way? Anyone who know how to write data from
animate to a mysql database?
Svein-Tore
2014-02-20 1:39 GMT+01:00 heathrowe <[email protected]>:
    Re: Using variables in url  created by heathrowe<http://forums.adobe.com/people/heathrowe>in *Edge
Animate CC* - View the full discussion<http://forums.adobe.com/message/6137980#6137980

Similar Messages

  • Variables in URL iview

    Hi.
    We are going to create URL iview in Portal 60 SP15.
    When we create URL iview, We want to use variable for URL parameter. (For example <User.UserID>)
    Any idea ?
    Regards, Arnold.

    hi,
    under configuring url parameters you can see that
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/98dc60ad8243139402836e11abb2ba/frameset.htm
    If you set the parameter as a variable that can be personalizable by end users , then this value will be the parameter’s default value. However, if you set the parameter as not personalizable, then this value is the fixed value of the parameter.
    Regards,
    Ganesh N

  • Dynamic URL Configuration using variable range - WAD

    Hi,
    I am trying to configure a URL dynamically using variable range values. There are two variables which I pass to the URL, Sales Document Number and Posting Date. Sales Document Number has a single value and Posting Date is a range variable. The single value for sales document is passed to the URL but the date range is not passed and hence the web template gets the blank value for the date and shows the variable screen as this is mandatory. The URL is as follows.
    CONCATENATE
    l_web_protocol
    l_portal_server
    Initial URL
    '/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE='
    l_web_template
    '&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING='
    l_var_value  "variable value
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE='
    l_var_name   "Variable for info object
    '&BI_COMMAND_2-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR=INTERVAL_SELECTION'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-ATTRIBUTE_MEMBER_SELECTION-
    INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBERS_EXIT='
    l_range_var_name  "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBER_NAME='
    l_range-low     "Variable Value - Low
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-ATTRIBUTE_MEMBER_SELECTION- INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBERS_EXIT='
    l_range_var_name     "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBER_NAME='
    l_range-high      "Variable Value - High
    '&BI_COMMAND_2-RANGE_SELECTION_SIGN=INCLUDING'
    '&BI_COMMAND_2-TARGET_DATA_PROVIDER_REF_LIST=DP_TAB'      "Tab in the Web Template
    into  l_url.
    Can someone tell me asto what's going wrong with this URL? I passed single value for Posting Date and it worked fine.
    Thanks and Regards,
    Arya

    Thanks for the reply. However I did not understand couple of things. Should I try the URL like below?
    BI_COMMAND=&
    BI_COMMAND-TARGET_DIALOG_REF=l_var_name&
    BI_COMMAND-BI_ADVANCED=DLG_VARIABLE_vsc_DropdownVariants& "Which value to be passed?
    BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&  "Which value to be passed?
    BI_COMMAND-PASSIVE_ID=DLG_VARIABLE_vsc_DropdownVariants_combobox& "Which value to be passed?
    BI_COMMAND-PASSIVE_VALUE=l_var_value&
    BI_COMMAND_1=&
    BI_COMMAND_1-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_1-BI_ADVANCED=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT& "Which value to be passed?
    BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&
    BI_COMMAND_1-PASSIVE_ID=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT_inp& "Which value to be passed?
    BI_COMMAND_1-PASSIVE_VALUE=l_range_low-l_range_high&
    BI_COMMAND_2=&
    BI_COMMAND_2-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_2-BI_COMMAND_TYPE=OK
    Thanks and Regars,
    Arya

  • Using wildcards in URL variables (very simple question, i know)

    Hi all!
    Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working):
    var myurl = "http://www.mydomain.com/sub1/sub2/pagename";
    var currenturl = window.location
    if(myurl == currenturl) {
        sym.getSymbol("symbolname").play();
    It simply makes the symbol "symbolname" play when the current URL matches the variable 'myurl'. However, I want the symbol to play on ALL subpages to http://www.mydomain.com/sub1/sub2/ and therefore it seems logical to put in a wildcard like:
    http://www.mydomain.com/sub1/sub2/* or something similar, but I just can't seem to make it work??
    Any help will be greatly appreciated!
    Best,
    Thomas

    What about this ?
    var mysubdomain = "http://www.mydomain.com/sub1/sub2/";
    var currenturl = window.location.toString();
    if(currenturl.indexOf(mysubdomain) === 0) {
        sym.getSymbol("symbolname").play();
    -Dharmendra

  • Tell Safari to open url using variables

    Hi,
    I need to be able to tell Safari to open a url using variables.
    Example:
    I type "Soul Men" (without the quotes) in MS Word Mac, then select it, then run the
    script and Safari opens as if I had opened imdb.com and searched for "Soul Men".
    The issue:
    The format for that imdb.com search url is:
    http://www.imdb.com/find?s=all&q=Soul+Men&x=12&y=12
    Notice that each word in the search terms is followed by a "+", except the last.
    So I would need to tell the script to create that url, and use variables for the search terms.
    I would need to account for any number of words in the variable.
    Hope that makes sense,
    Any help appreciated,
    Charles

    Hello
    As for building imdb's query url, you may try something like the CODE1 below.
    It includes code to handle characters in U+0080 and upper.
    (The imdb's query looks like using iso-8859-1 encoding, not utf-8, so the code is written as such.)
    --CODE1
    set n to "Soul Men"
    set u to imdbQueryUrl(n)
    return u
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF CODE1
    As for getting text in selection of Word document, you may try something like the CODE2 below. Not tested, though.
    --CODE2
    tell application "Word"
    set t to content of selection
    --set t to content of text object of selection -- if above fails
    end tell
    --END OF CODE2
    As a whole, you may try something like this -
    --SCRIPT
    tell application "Word" to set n to content of selection
    open location imdbQueryUrl(n)
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF SCRIPT
    Good luck,
    H

  • Problem with Multimapping using Variable Susbtitution

    Hi,
    I have done a Multi-Mapping where I have used variable substitution in the mapping
    The problem I am facing is that when my target message generates multiple messages the files are creating successfully on the FTP server but if only a
    single message generates on the target side then my message is successfully processed in IS but in adapter engine the message status is in "Waiting" state.
    When i see the audit log i found the following details:
    Time Stamp Status Description
    2007-09-18 06:10:24 Success The message was successfully received by the messaging system. Profile: XI URL: https://dx1-60.ra.rockwell.com:56001/MessagingSystem/receive/AFW/XI
    2007-09-18 06:10:24 Success Using connection AFW. Trying to put the message into the receive queue.
    2007-09-18 06:10:24 Success Message successfully put into the queue.
    2007-09-18 06:10:24 Success The message was successfully retrieved from the receive queue.
    2007-09-18 06:10:24 Success The message status set to DLNG.
    2007-09-18 06:10:24 Error Unable to find channel ID
    2007-09-18 06:10:24 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: 46ee0b73-f266-3794-e100-000082974e17.
    2007-09-18 06:10:24 Success The asynchronous message was successfully scheduled to be delivered at Tue Sep 18 06:15:24 GMT 2007.
    2007-09-18 06:10:24 Success The message status set to WAIT.
    2007-09-18 06:15:24 Success Retrying to deliver message to the application. Retry: 1
    Iam using SP14
    Can anyone help me to solve the above problem

    DATA: l_tabname TYPE tabname .
    DATA : gi_mara TYPE TABLE OF mara ,
           gi_makt TYPE TABLE OF makt .
    l_tabname = 'MARA' .
    DATA         : l_dref TYPE REF TO data.
    FIELD-SYMBOLS: <li_itab> TYPE ANY TABLE.
    CREATE DATA l_dref TYPE TABLE OF (l_tabname).
    ASSIGN l_dref->* TO <li_itab>  .
    *Define another field symbol and asign it to right internal table
    *here naming of internal table is important
    FIELD-SYMBOLS : <fs_tab> TYPE ANY TABLE .
    CONCATENATE 'GI_' l_tabname INTO l_tabname .
    ASSIGN (l_tabname) TO <fs_tab>.
    <fs_tab> = <li_itab> .

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Using variables in a query

    Hello all,
    I just tried to use variable in a query and dont know how to
    output the content in the query. As you can see from what i am
    trying, i would only get the name of the query and the field name
    not the output. Please tell me the idiotic thing that i am over
    looking.
    Matt

    Mike,
    Thanks, ...if you were to output the url.fieldused, then you
    would get the name of the field, not the value of the field. The
    getfield[ ] is not something that i am familier with and cant seem
    to find documentation on this...I need to output the value of the
    field and this is where i am stuck.
    Matt

  • Using Variable in Web.xml/ Override value in web.xml

    Environment : JBOSS 4.2 / Web application in java/jsp
    *==============================================================*
    Iam using a servelet in application, and paremeters is configured in web.xml at run time I need to change the value. A variable
    see web.xml
    {color:#ff0000}<param-value>C:/FILE_ATTACHMENTS{color}</param-value>
    Instead of using a static folder name I need to use a variable, this veriable either i define in config.properties or ineed to pass through application
    Web.Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="[http://java.sun.com/xml/ns/j2ee]" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" xsi:schemaLocation="[http://java.sun.com/xml/ns/j2ee] [http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd]">
    <display-name>VyasaWeb</display-name>
    <servlet>
    <servlet-name>VyasaServlet</servlet-name>
    <servlet-class>com.jsos.download.VyasaServlet</servlet-class>
    <init-param>
    <param-name>dir</param-name>
    param-value>C:/FILE_ATTACHMENTS</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>VyasaServlet</servlet-name>
    <url-pattern>/servlet/VyasaServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    Is any way to use variable in web.xml or override the value ?
    Please help
    Vince
    Edited by: VINCEJOHNSON on Jul 30, 2010 3:30 PM

    If nothing else, why not just have your servlet load a configuration file on startup?

  • Using variable in KM configuration

    Hi,
    I am using LKM that uses sqlldr oracle utility to load data. I don't want to use hard coded path in LKM configuration.
    e.g defalut directory = /root/home/
    I defined a variable V_SQLDR_DIR to store this path. The value for variable is not resolved while execution.
    defalut directory = #V_SQLDR_DIR

    In LKM there is a option called "default directory". I don't want to hard code this value in LKM configuration. How to use variable in LKM conf.?
    This is the LKM code
    SnpsSqlUnload "-driver=<%=snpRef.getInfo("SRC_JAVA_DRIVER")%>" "-URL=<%=snpRef.getInfo("SRC_JAVA_URL")%>" -user=<%=snpRef.getInfo("SRC_USER_NAME")%> -pass=<%=snpRef.getInfo("SRC_ENCODED_PASS")%> -file_format=variable -row_sep=<%=snpRef.getOption("ROW_SEPARATOR")%> "-date_format=dd-MMM-yy" -fetch_size=<%=snpRef.getOption("FETCH_SIZE")%> -field_sep=|~| "*-file=<%=snpRef.getOption("DEFAULT_DIRECTORY")%>*/<%=snpRef.getInfo("TARG_NAME")%>.dat"
    select * from xyz

  • Using variables in Page processing

    I want to use variables (items) in
    Page processing - process - reset pagination for page(s) (PageID,PageID,PageID)
    and
    Page processing - Branches - Branch to page / URL - URL
    Is this possible, and if so How
    Fred.

    scott,
    On the places I mentioned I have tried to use references like &ITEM. and #ITEM# but they don't work.
    Where can I find documentation about where I can use which references.
    Fred.

  • Problem passing Session variable as URL parameter?

    Hi,
    I am trying to create a multiple page entry form using
    coldfusion session. But I am having some problem when passing the
    session variable to url parameter. For test purpose I have created
    the following code:
    <cfif Not IsDefined("SESSION.AE")>
    <!--- If structure undefined, create/initialize it
    --->
    <cfset SESSION.AE = StructNew()>
    <!--- Represent current form srep; start at one --->
    <cfset SESSION.AE.StepNum = 1>
    </cfif>
    <cfif IsDefined("Form.GoBack")>
    <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    <cfelseif IsDefined("Form.Next")>
    <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    </cfif>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    <input type="submit" name="GoBack" value="Back">
    <input type="submit" name="Next" value="Next">
    </form>
    </body>
    </html>
    When run it I get the following error:
    The value "" cannot be converted to a number
    The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
    11
    9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    10 : <cfelseif IsDefined("Form.Next")>
    11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
    1>--->
    13 : </cfif>
    I couldn't figure out where is the problem. Any help is
    really appreciated.
    Thanks in advance.

    You are mixing up your gets and posts aren't you?
    You have your form method set to post which creates form
    variables not
    url variables. So when you try to use the url variable to set
    your
    session it does not exist.
    Change your SESSION.AE.StepNum = #url.StepNum# to
    Session.AE.StepNum =
    form.StepNum, note there is no need for the #'s.
    OR
    change your form method="post" to form method="get"
    Nagelia wrote:
    > Hi,
    >
    > I am trying to create a multiple page entry form using
    coldfusion session. But
    > I am having some problem when passing the session
    counter to url parameter. For
    > test purpose I have created the following code:
    >
    > <cfif Not IsDefined("SESSION.AE")>
    > <!--- If structure undefined, create/initialize it
    --->
    > <cfset SESSION.AE = StructNew()>
    > <!--- Represent current form srep; start at one
    --->
    > <cfset SESSION.AE.StepNum = 1>
    > </cfif>
    > <cfif IsDefined("Form.GoBack")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > <cfelseif IsDefined("Form.Next")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    > </cfif>
    >
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > </head>
    > <body>
    > <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    > <input type="submit" name="GoBack" value="Back">
    > <input type="submit" name="Next" value="Next">
    > </form>
    > </body>
    > </html>
    >
    > When run it I get the following error:
    >
    > The value "" cannot be converted to a number
    >
    >
    > The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
    line 11
    >
    > 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > 10 : <cfelseif IsDefined("Form.Next")>
    > 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
    1>
    > 12 : <!---<cfset SESSION.AE.StepNum =
    #url.StepNum# + 1>--->
    > 13 : </cfif>
    >
    > I couldn't figure out where is the problem. Any help is
    really appreciated.
    >
    > Thanks in advance.
    >
    >
    >
    >

  • Using variables on included files?

    Can you not use #variable# on a file that is added on an
    existing .cfm file
    with <cfinclude> ??
    I have:
    <cfquery name="check_user" datasource="SalleBoise">
    select u_id,u_fName,u_lName,u_foil_rating,u_foil_year
    from tournfencer
    where u_user='#form.Username#'
    </cfquery>
    <cfinclude template="inc/event_reg.cfm">
    - event_reg.cfm is-
    <cfform name="form1" method="post"
    action="CF/process2.cfm?pmode=a&tid=#url.tid#"
    id="FormBorder"
    style="margin-top:2px;"><span class="bold">Events
    competing in:</span><table
    width="98%" border="0">
    <cfif #url.f# eq 1>
    <tr>
    <td width="15%" align="center">Open Foil</td>
    <td width="10%" align="center"><input
    name="OpenFoil" type="checkbox"
    value="1" checked="yes" onClick="optionFoil(this.form)">
    </td>
    </tr>
    </cfif>
    <cfif #url.e# eq 1>
    <tr>
    <td align="center">Open Epee </td>
    <td align="center"><input name="OpenEpee"
    type="checkbox" value="1"
    checked="yes" onClick="optionEpee(this.form)"></td>
    </tr>
    </cfif>
    </table>
    <cfset id=createuuid()>
    <input type="hidden" name="id"
    value="<cfoutput>#id#</cfoutput>">
    <input type="hidden" name="fRating"
    value="<cfoutput>#check_user.u_foil_rating#</cfoutput>">
    <div align="center">
    <input name="Submit" type="submit" value="Register"
    onClick="return
    checkmail(this.form.FencerEmail)">
    </div>
    </cfform>
    But if I dump the variable #fRating#, I get a message that
    says Element
    U_FOIL_RATING is undefined in CHECK_USER

    I have the code as:
    event_reg.cfm:
    <cfform name="form1" method="post"
    action="CF/process2.cfm?pmode=a&tid=#url.tid#"
    id="FormBorder"
    style="margin-top:2px;"><span class="bold">Events
    competing in:</span><table
    width="98%" border="0">
    <cfif #url.f# eq 1>
    <tr>
    <td width="15%" align="center">Open Foil</td>
    <td width="10%" align="center"><input
    name="OpenFoil" type="checkbox"
    value="1" checked="yes" onClick="optionFoil(this.form)">
    </td>
    </tr>
    </cfif>
    <cfif #url.e# eq 1>
    <tr>
    <td align="center">Open Epee </td>
    <td align="center"><input name="OpenEpee"
    type="checkbox" value="1"
    checked="yes" onClick="optionEpee(this.form)"></td>
    </tr>
    </cfif>
    </table>
    <cfset id=createuuid()>
    <input type="hidden" name="id"
    value="<cfoutput>#id#</cfoutput>">
    <cfdump var="#fRating#">
    <input type="hidden" name="fRating"
    value="<cfoutput>#check_user.u_foil_rating#</cfoutput>">
    <div align="center">
    <input name="Submit" type="submit" value="Register"
    onClick="return
    checkmail(this.form.FencerEmail)">
    </div>
    </cfform>
    tournament2.cfm:
    <!-- Variables which need to be defined -->
    <cfparam name="URL.logout" default="0">
    <cfparam name="invalid_login" default="0">
    <!-- Code will not be executed unless #FORM.username# IS
    NOT "" -->
    <cfif structKeyExists(form,"username")>
    <!-- Check Username, Password, and Level of
    Administration -->
    <cfquery name="check_user" datasource="SalleBoise">
    select u_id,u_fName,u_lName,u_foil_rating,u_foil_year
    from tournfencer
    where u_user='#form.Username#'
    </cfquery>
    <!-- If there is a valid User then Login user -->
    <cfif check_user.recordcount is not 0>
    <!-- Log them in with a timeout of 30 minutes (1800 sec)
    and set
    level of Admin-->
    <cflogin idletimeout="1800">
    <cfloginuser
    name = "#FORM.username#"
    password ="#FORM.password#"
    roles = "1">
    </cflogin>
    <cfelse>
    <!-- If an invalid Login Attemp, Set invalid to 1 for
    invalid login
    script -->
    <cfset invalid_login = 1>
    </cfif>
    </cfif>
    <!-- If index.cfm?logout=1 is clicked then Log The User
    Out -->
    <cfif URL.logout is 1>
    <cflogout>
    <cflocation url="index.cfm">
    </cfif>
    <!--- Simple index.cfm file that logs you in --->
    <cfif GetAuthUser() is "">
    <form name="form1" method="post"
    action="<cfoutput>#cgi.HTTP_REFERER#</cfoutput>">
    User: <input name="username" type="text"
    id="username"><br>
    Pass: <input name="password" type="password"
    id="password"><br>
    <input type="submit" name="Submit" value="Submit">
    </form>
    <cfelse>
    <cfinclude template="inc/event_reg.cfm">
    <!---
    <p>User:
    <cfoutput>#GetAuthUser()#</cfoutput></p>
    <p><cfoutput>#check_user.u_fName# -
    #check_user.u_id#</cfoutput><br> --->
    <a href="index.cfm?logout=1">Logout</a>
    <cfdump var="#check_user#">
    </cfif>
    "Kronin555" <[email protected]> wrote in
    message
    news:[email protected]...
    > If you did that dump at the very top of
    inc/event_reg.cfm, then there must
    > be
    > code in event_reg.cfm that we don't see. Are you
    resetting check_user to
    > anything in that file?
    >
    > > But if I dump the variable #fRating#, I get a
    message that says Element
    > U_FOIL_RATING is undefined in CHECK_USER
    >
    > Where are you trying to dump the fRating variable? In
    CF/process2.cfm? In
    > event_reg.cfm, you are setting the value of a hidden
    form variable to
    > check_user.u_foil_rating. When this page loads, if you
    view source, is the
    > value being set correctly?
    >
    > Your statement about dumping fRating leads me to believe
    the error is
    > actually
    > occurring on a different page, not this page. What page
    are you actually
    > getting the undefined variable error?
    >

  • HTTPService - using FlashVars for URL?

    Hi,
    New Flex user, so please forgive me if this sounds stupid.
    I'm fiddling around with a modified version of the dashboard sample
    application, and am using the FlashVars param tag to pass in a
    bunch of variables into the application. They all work fine, except
    the variable I'm using for the URL in HTTPService, which is the
    name of an XML file that another application I've written has
    generated. It returns this error:
    [RPC Fault faultString="A URL must be specified with useProxy
    set to false." faultCode="Client.URLRequired" faultDetail="null"]
    at mx.rpc.http::HTTPService/send()
    at mx.rpc.http.mxml::HTTPService/send()
    at dashboard/::initApp()
    at dashboard/___Application1_creationComplete()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/set initialized()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    But I'm absolutely positive the URL value is correct. I've
    tested and displayed the value that comes through, and when I
    manually paste that value into the URL, it works fine. Tried
    relative and absolute URLs, tried just passing the partial filename
    through (so the FlashVars variable just has alphanumeric
    characters) and hard-coding the rest of the URL. Same result.
    Does HTTPservice just not allow this value to be passed via
    FlashVars, or is there something I'm completely missing (maybe I
    need to convert the value somehow)? Or, is there another solution
    to this problem?
    Thanks, in advance.

    How are you asigning the url value to the HTTPService
    property? Binding or via actionscript?
    Tracy

  • Passing Hierarchy Variable from URL to Template

    Hi
    How do I pass a Hierarchy Variable from URL Query String to the Web Template.
    I am on NW04s SP11. Could anyone please help me out as it is urgent and we need to show case BI capabillities to Client.
    Thank You
    With Wishes
    Krish

    This link might be useful...
    http://help.sap.com/saphelp_nw04/helpdata/en/72/726b11561e6b4fafc43d692c4e27ab/content.htm

Maybe you are looking for

  • Error message while asset transfer

    Hi     We are getting an error message when transfering an asset from one Company code to another Company code using transaction ABT1N. We are getting the following error message - Error during acquisition transfer: Depr. area does not exist Message

  • How do you get a Node's text value using DOM?

    Hi, Can anyone tell me how I can extract the text values from <currency>, <Handle>, <shortcut> and <source> tags? This is my Code import org.w3c.dom.*; import org.apache.xerces.parsers.DOMParser; public class CurveConfSave{ public static void walkove

  • Message needed to be displayed

    hi, i have written a program in forms which is a logon screen. following is the program which i have written, DECLARE      USERNAME EMPY.EMP_USERNAME%TYPE;      PASS EMPY.E_PASS%TYPE;      CERT EMPY.AUTHORISE_CERT%TYPE;      CURSOR C1 IS      SELECT

  • HT1424 how do i set up the vpn for the ios

    how do i set up vpn for the ipad2

  • ABAP New Version

    Hi Experts, I have one doubt . What is the ABAP New version and what r the all versions that are available in the market. Regards Khanna