Not passing URL parameter

<?php require_once('../Connections/connHotel.php'); ?>
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ?
addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] == "userform")) {
$insertSQL = sprintf("INSERT INTO clients (title, firstName,
lastName, address1, address2, town, province, country, postCode,
tel, email) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['title'], "text"),
GetSQLValueString($_POST['firstName'], "text"),
GetSQLValueString($_POST['Surname'], "text"),
GetSQLValueString($_POST['address1'], "text"),
GetSQLValueString($_POST['address2'], "text"),
GetSQLValueString($_POST['town'], "text"),
GetSQLValueString($_POST['province'], "text"),
GetSQLValueString($_POST['country'], "text"),
GetSQLValueString($_POST['postcode'], "text"),
GetSQLValueString($_POST['telephone'], "text"),
GetSQLValueString($_POST['$email'], "text"));
mysql_select_db($database_connHotel, $connHotel);
$Result1 = mysql_query($insertSQL, $connHotel) or
die(mysql_error());
$insertGoTo = "booking_details.php?email=" .
$HTTP_POST_VARS['email'] . "";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
?>
thats my php
<tr>
<td bordercolor="#FFFFFF"><div
align="right">Email:</div></td>
<td bordercolor="#FFFFFF">
<input name="$email"
type="text"
id="$email"
onfocus="MM_displayStatusMsg('Please enter your
email');return document.MM_returnValue"
maxlength="100" />
</td>
</tr>
thats my email form field, when i click submit it suppose to
go to next page with the email in the link and pass it over but
instead all i get on the next page is
http://127.0.0.1/dreamweaverhotel/bookings/booking_details.php?email=&
instead of email being there. can anyone help me with this

Hi Girish,
note 989900 describes an error solved with patch 700/82 or 640/153.
Using
http://<WAS>/sap/bc/gui/sap/its/webgui/!?sap-client=000&sap-user=<usr>&sap-password=<password>&transaction=SE11&RSRD1-TBMA_VAL=TADIR&okcode=WB_DISPLAY
works for me.
In addition I recommend to read note 777423 which describes a better way to pass okcodes using the URL.
hope this helps
Tobias
Message was edited by:
        Tobias Gomer

Similar Messages

  • Pass URL parameter for zip code

    In this fake url I want to pass the zip code value of the confirmed BP into "zipcode"
    https://acme.com/locator.jsp?zip=zipcode
    from the other post I have read the parameter name would be "zipcode" and thru the transaction launcher I am able to assign parameter value =
    //selectedClmBpLinkRelationship/BpRelLinkBusinessPartner/BuilStandardAddressRel/POSTL_COD1
    The transaction launcher is opening the launcher but not passing the value into the field. The window opens but the field is not filled with the zip code.
    If I open a new ie browser and put in url
    https://acme.com/locator.jsp?zip=60001
    the url is reached and 60001 is filling the zip code field.
    Is there an easy way to debug and see if any value is getting passed?
    Am I conceptually on base for what I am trying to do?

    Hi Shwetha,
        That got me pointed in the right direction where we could get it to work.
    For others, these were some other points we used to get it to work.
    1. in the IMG where the url is defined don't add the ZIP parameter here so our IMG entry =  https://acme.com/locator.jsp?
    when the page launched correctly the parameters showed https://acme.com/locator.jsp?&zipcode=60001
    2. for zip code parameter value we used //currentCustomer/BuilStandardAddressRel/POSTL_COD1  >> this goes in the transaction launcher with parameter zipcode and is then visible in the IMG entry "copy/delete launch transactions"

  • Passing URL parameter to form

    Hi, i'm currently building a back-end for a small site. What
    i'm trying to do is enable a user to edit and update an article.
    I've got a dynamic table, i'm trying to use a URL form parameter to
    pass the unique ID of an article to a form that brings up the
    article for editing, but its not working, its just bringing up the
    same record whatever link is clicked in the dynamic table. Can
    somebody point out whats missing? I'm using PHP & mySQL.
    Thanks, any help appreciated.

    You don't specify what language you're using, or how you're
    populating your
    form.
    If you're using a recordset to populate your form, simply
    edit it and then
    set the filter to your ID field, and use the URL parameter to
    capture your
    variable. Make sure in your recordset for your page to
    display the records
    you put the same variable name as you use on your previous
    page with the url
    variable.
    HTH,
    Jon
    "MarkAD88" <[email protected]> wrote in
    message
    news:e4f5s9$4l$[email protected]..
    > Hi, i'm currently building a back-end for a small site.
    What i'm trying to
    > do
    > is enable a user to edit and update an article. I've got
    a dynamic table,
    > i'm
    > trying to use a URL form parameter to pass the unique ID
    of an article to
    > a
    > form that brings up the article for editing, but its not
    working, its just
    > bringing up the same record whatever link is clicked in
    the dynamic table.
    > Can
    > somebody point out whats missing? Thanks, any help
    appreciated.
    >

  • Passing url parameter

    Hi,
    I would like to pass a url parameter, with the following format,  to a get method.
         http://myserver/send?param-id=1234@5678
    I was able to do it using the HTTPService send(parameter) but the characters "-" and "@" are changed. I want to send the parameter as is, can anyone teach me how?
    Thanks in advance..

    rockstar888,
    for a GET, you can only use things which are permitted characters in a URL string. Hence some characters won't work just as they are. Now, we all know some browsers are very accommodating with things like this (eg a space character should be sent as %20 but if typing in a URL you can usually get away with it in a browser), but you have to be more strict in this situation. One way is to have some encode/decode stuff at each end. Another (if you are going to use the result simply as a URL at the other end) is just to let the URL encoding go on its way without problems. Another is to use POST rather than GET, since POST variables are passed like entries in an HTML form rather than a querystring, so you have more flexibility. To do this you just use the method property of HTTPService.
    Richard

  • How to pass url parameter string to a query

    I need urgent help please, to pass a mysql query string from a master page to another details jsp page using a url parameter. The master page's url parameter looks like this;
    <a href="Details.jsp?jobs=<c:out value="${row.actions_id}"/>"><c:out value="${row.action_title}"/></a>How can I query the mysql database using the url query string to get the query details.
    Please help me out with detailed example please.

    You can get the parameter value using HttpServletRequest#getParameter():String jobs = request.getParameter("jobs");You can interact with databases using the JDBC API. This is a different topic. If you aren't familiar with it yet, then learn it. There is a very good JDBC tutorial here at Sun.com: [http://java.sun.com/docs/books/tutorial/jdbc/index.html]. Once you're familiar with that, create a DAO class which does the all the database interaction tasks. Create a method which takes the jobs value as parameter and let it return result(s) accordingly. You may find this article useful either: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • How do I pass URL parameter after Update record?

    I have an update record page that successfully updates a record, but when it is redirected to the page it came from it loses any parameters to filter record sets to obtain the correct records.
    When I try to use the Parameters dialog box from the Update Records "select a redirect" dialog box, it results in an error indicator in front of the Update Records line in the Server Behavior, and the web page ceases to update the records.
    How do I pass a parameter to the next page?
    Thanks

    I have found a work around for this issue. By selecting the Insert or Update button and adding a hyperlink with parameter settings. The Hyperlink has the same destination as the Insert records Behavior. When the button is clicked it performs the Insert, and passes the parameters to the destination page..

  • Is it possible to pass URL parameter to "People" in Office 365 ?

    Hi,
    I would like to find out if I can pass parameter from SharePoint online to "People" module on Office 365.
    i.e.
    https://outlook.office365.com/owa/?realm=XXXXXXXX&wa=wsignin1.0?QUERY=John#path=/people
    Please note "?QUERY=John"
    I've tried different params like "k", "q", "query", etc but this doesn't work...
    What we would like to achieve is that user enter some name in search box on Sharepoint and after submitting is transferred to "People" module in Office365 with results matching name entered on Sharepoint.
    Any advice will be really appreciated !
    Thanks

    Hi Mariusz,
    To be able to access another user’s mailbox, we need to assign the account full access permission to access the other user’s mailbox.
    And then we can access the other user’s mailbox through URL like this:
    https://xxx.outlook.com/owa/[email protected]
    I recommend to edit the Search result page(when a search center is used) and add a button to the page. When user clicks the button, redirect to the corresponding mailbox.
    If a user name is typed in the search box, use JSOM to get the login name or email address of the user and generate the URL of the user’s mailbox which will be used when clicking the button.
    About how to use JSOM to get the email address of a user:
    https://msdn.microsoft.com/en-us/library/office/jj163800.aspx
    For more information, you can post your question to the forum for Office 365: http://community.office365.com/en-us/f/default.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Pass Url Parameter To Portlet in a Tab Page

    Ciao,
    i have a portal page with TABS. I have pl/sql portlets that read the url, then they pass parameters to the url. With "wwpro_api_parameters.get_value" and the session i am able to pass parameters via URL and to know if i have changed tab or not.
    My question is: how cai i "CLEAN" the url if i change the tab? As you know, if i change tab, only the "_pageid" parameter change, and not the whole url.
    i.e.: http://misun13:7777/servlet/page?_pageid=202,204,217&_dad=portal30&_schema=PORTAL30&par_name=5
    I change the tab: http://misun13:7777/servlet/page?_pageid=202,206,217&_dad=portal30&_schema=PORTAL30&par_name=5
    But i want to RESET the parameters! That is i want: http://misun13:7777/servlet/page?_pageid=202,206,217&_dad=portal30&_schema=PORTAL30
    It seems i can't change the standard behaviour of the TAB.
    Does anybody know how to do that?
    Thanks in advance,
    Ettore

    Hi Ettore,
    It is true that when you pass parameters, they show up on the URL and even when you change tabs the messy long URL will show up.
    One way to avoid this, is to use the session store instead and save and access the parameter values from the session storage itself.
    For more details on using Session Storage, check the PDK documentation for using the session store.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/implementing.session.storage.html
    Another thing, you may try is using the owa_utl.redirect to specifically redirect to a clean URL. But i suspect that if your parameter values are still active, they will populate the URL in any case.
    For further details on parameter passing, check:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/guidelines.parameter.passing.html
    Hope this helps.
    Mohana

  • Passing URL parameter across Show detail item tabs

    Hi
    I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
    In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
    The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
    Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
    Thanks
    Nikhil

    Hi
    I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
    In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
    The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
    Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
    Thanks
    Nikhil

  • PI 7.1 EHP1: RFC lookup does not pass the parameter values

    Hi,
    I am not sure if anyone came cross this issue:
    This is IDOC -> PI -> File scenario
    IDOC sender side, we used IDOC packaging, means in one message, we have mutiple IDOCs.
    There is RFC lookup function in message mapping, it takes 8 parameters. There are four contants value and four queue passed.
    We would like to call the RFC lookup for each IDOC sent.
    Saying we sent 10 IDOCs, the RFC was called 10 times, this is expected behavior.
    However, in 8 parameters, we miss four parameters values even we passed values
    Regards.
    Liang

    J Augastine:
    Thanks for the input.
    In blog, it talked about one RFC call for a mapping.
    In my situation, we need to multiple times of RFC, since this is EDI scenario, some elements need to be incremented.
    Previously, this RFC works without any problem. However we increased 4 parameters, for those parameter added laterly, it does not carry the value to RFC call, I tried to removed the function from ESR and re-import the RFC, but it still does not help.
    I also tried to pass constant value or queue value, it all does not help.
    Regards.
    Liang

  • Custom component class is not detecting url parameter

    I have a hcsp page, on which i have a link something like this :
    "<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1"
    m appending one more parameter in this url through java script.
    so one is the var1 which is directly here in the url and one m appending through java script so my final url would be:
    "<$HttpCgiPath$>?IdcService=CUSTOM_SERVICE&var1=value1&var2=value2"
    M calling a java function which fetches these variable.
    my code is
    String value1=m_binder.getlocal("var1");
    This is working fine .
    But when i do it for var2, this gives an error " variable var2 is not found" in the logs.
    Please guide
    Thanks,
    Chely
    Edited by: Chely on Jan 17, 2013 3:08 AM
    Edited by: Chely on Jan 17, 2013 3:09 AM

    Thanks Jonathan. i have executed m_binder.toString() and in the logs:
    m_binderString
    *** LocalData ***
    (9 keys + 0 defaults)
    IdcService=SUNRISE_DEL_TAX_USER
    XmlEncodingMode=Full
    dUser=UCMDev_Idc
    idcToken=1358675908923:318447AB701D7A6E92FDDAFA9DEBCC3D
    var1=1
    tax_type=N
    uname=cbohra001c
    *** RESULT SETS ***
    var1 is here but var2 is not here in the result set, Now what should i do to make it available in my binder,because in my hcsp java script i have an alert of url and in this alert i am able to see the complete url including var1 and var2.
    Thanks,
    Chely
    Edited by: Chely on Jan 18, 2013 2:06 AM

  • Pass URL parameter to BEx application

    Hi all.
    We have a BEx query, that is called by Iview. In the URL, we attach the user that logged in the portal. Then when the BEx application is called we need pass this value to the query.
    We tried to solve this principally concatenating this chain to URL query in the Iview:
    &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=j_user
    &BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE= ZUSPORT
    Where j_user is the user sended back by the portal, and ZUSPORT is the name of the query selection field.
    But now the problem is that we need to use an editable field to retrieve the user value... then we would make the field invisible or disabled but we don't know how to make this.
    If make the caracteristic invisible in query designer it doesn't turn invisible because is a editable field.
    If we use a exit variable the value isn't retrieved.
    Any idea?? Any help will be apreciated. Thanks in advance.

    Andrea,
    If the parameter is always the same value, you can use the URL iview or the Application integrator iview and simply add the parameter to the URL in the iview properties.
    If the parameter is dynamic, you can use the Application integrator. With this iview you can send user profile attributes as url parameters for instance.
    Hope it helps.
    Johan

  • Pass url parameter to cfreport

    I am using CF9 and have generated a report using CF Report Builder that has a report parameter that function correctly.
    I am trying to be able to get the variable value from the the address line and then display the cooresponding report page.
    I have set a default value in report builder and written a simple viewing cfm. 
    <cfreport template="NC_ImpactReport.cfr" format="pdf">
    <cfreportparam name= "CFVarProjectID" value=55>
    </cfreport>
    When I run this I get the report returned correctly for record '55'
    http://website/nc_impactreport.cfm
    Another program will have the hyperlink (http://website/nc_impactreport.cfm) with the selected record id(ie55) all on one line.
    How do I get the variable value from the address line into the cfm correctly to pass it into the report?
    Thanks,
    Kurt

    If your URL is "http://website/nc_impactreport.cfm?id=55" then your cfreportparam line should be:
    <cfreportparam name= "CFVarProjectID" value="#URL.id#">

  • Passing URL Parameter from a New Record

    Hey, I'm a bit of a newbie to this, so please help me !!
    I've created a form that adds a new record to a table using
    the insert server behavior for ASP. I want to pass over the
    strCompanyID field to the add-address.asp page as a URL variable,
    but I can't figure out how to do it. Any ideas? Here's the redirect
    source code:
    <%
    If (CStr(Request("MM_insert")) = "form2") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_eConnect_STRING
    MM_editCmd.CommandText = "INSERT INTO tblCompany
    (strCompanyID, strCompanyName, strCompanyType, strCompanySubType,
    strWebsite, strInactive) VALUES (?, ?, ?, ?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 10,
    Request.Form("strCompanyID")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202, 1, 50,
    Request.Form("strCompanyName")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202, 1, 20,
    Request.Form("select")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202, 1, 20,
    Request.Form("select1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 203, 1, 1073741823,
    Request.Form("strWebsite")) ' adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 5, 1, -1,
    MM_IIF(Request.Form("ynInactive"), 1, 0)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "add-address.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>

    Bump :o)

Maybe you are looking for

  • ITunes keeps "losing" the filepaths to my library.

    My friend had an external hard drive on her computer, and every time she disconnected it, iTunes would lose her songs. So we copied all of her music to her hard drive, and put it in her iTunes folder. Everything was fine; all the file paths were corr

  • ITunes needs DLNA service to share m4v (with Smart TV)

    I am really annoyed with Apple over this one.  Over the years I have spent thousands of dollars legally acquiring DRM-protected content for my personal and home use. I am in the process of acquiring the first 50 Gb of 150 Gb of an old TV favorite. No

  • Velocity control, DC motor

    Hi, Please refer to my attachment, may I ask how to convert my output variable (after coming out from pid vi and marked by biggest arrow) to PWM Duty Cycle duration? The scaling I have done doesn't seem correct.  [This code is modified from the 9505

  • Update either html site or another flex component with Data from ESRI Flexviewer

    Hello all, What I have is a basic flex mapping application that enables a user to update a feature (that is referenced to a ArcGIS server SDE database) by clicking on a the map.  Once the feature is added to database it updates a total feature count

  • Crystal XI R2 SP5 install issue

    I am running Crystal Reports XI R2 SP2 on Windows XP Pro SP3.  I download and run the SP5 exe.  The install program displays a message to provide the location of the CrystalReports.msi file.  I browse and point to the orginal install CD to this file.