How to open url with two varible

Hi everyone
Could you tell what wrong is in this line.          
String x="http://localhost/Test.php?memberID=ww&movieID=mm";
     Runtime.getRuntime().exec("cmd /c start iexplore "+x);
why does my Test.php always only get the first parameter?
Test.php only got member id is ww.
However movieID become undeclared.
Is '&' not working in java?
Thank you very one
Yang Bin
               

The browser is trying to parse the ampersand and following characters as an entity.
You could try this:
String path = "http://localhost/Test.php?";
String parameters = "memberID=ww&movieID=mm";
try {
    String request = path + java.net.URLEncoder.encode(parameters);
    Runtime.getRuntime().exec("cmd /c start iexplore " + request);
} catch (Exception e) {
}This may also require modification of your php.ini file (not sure).
Check here for more:
http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2
Hope this helps...

Similar Messages

  • How to open url with two varible(URGENT)

    Hi everyone
    Could you tell what wrong is in this line.
    String x="http://localhost/Test.php?memberID=ww&movieID=mm";
    Runtime.getRuntime().exec("cmd /c start iexplore "+x);
    why does my Test.php always only get the first parameter?
    Test.php only got member id is ww.
    However movieID become undeclared.
    Is '&' not working in java?
    Thank you very one
    Yang Bin

    Try :
    String x="http://localhost/Test.php?memberID=ww&movieID=mm";
    Runtime.getRuntime().exec("cmd /c start iexplore \""+x +"\"");
    the command should look like :
    cmd /c start iexplore "http://localhost/Test.php?memberID=ww&movieID=mm"

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • Open URL with Dreamweaver

    I'm a webdeveloper who works with tons of different pages each day.  Many of these are sent as URLs by others in the organization, via email, etc.
    To increase efficiency, I'd like to use our testing environment to automatically open URLs with Dreamweaver.  So, basically, open a URL in the test environment (test.example.com/testing123.html), then have a link on the page to open that exact page with Dreamweaver.
    Question is....does anyone know a way to open a specific file with a specific desktop application from the browser??

    In Firefox, you can click file and Save Page As, then save the page as an HTML file. Under Tools>Options or Firefox>Preferences (Mac) you can go to the Applications tab and add HTML as a file type and select DW as the default app to open them.
    Personally, I'd caution against that because it messes up things that you really should be using Firefox or IE to open. (CHMs or application help files for example).

  • How to open url photoshop on mac OSX ?

    How to open url photoshop on mac OSX ?
    Safari doesn't know internet adress starting by "aam://" please help me...

    http://helpx.adobe.com/creative-cloud/kb/cc-download-button-gives-aam.html

  • How to manage itunes with two ipods

    I have two iPods, a 60G photo and a 30G video. I have two macs, one at work, the other at home. My iTunes on the work computer has about 50G of music, and about 15G on my home computer. Until now, I have only synced the big iPod with the work computer and small iPod at home. I just got a very big external drive, and want to keep everything there. That raises several questions I thought someone here might know how to answer.
    1) Where are the files so I can just copy them onto the ext hard drive? (I can probably find this for myself, but with my computer skills on mac, it will be frustrating, I imagine. Since I have the other questions, I thought htis one might be easy.)
    2) How can I merge the two files? I know I have some duplicates, adn I know how to get rid of them once the two are merged, but how do the two files merge together in one iTunes file on my new hard drive?
    3) Once the two are merged, can I set it so that certain types of music are put on one iPod, and other types on the other?
    Thanks a lot, in advance.
    Brad

    1. Click on the folder in the Finder's sidebar with the house icon, and then open the folder named Music. The iTunes folder inside is the default location of the music library; if the songs aren't here, follow these instructions to locate them.
    2. Drag the files into the Library section of the open iTunes application.
    3. Use the option in this article which best fits your needs.
    (22256)

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • How to open files with the trackpad?

    Hi,
    On my old Powerbook, I could open documents with a double tap. On my new Macbook Pro, I cannot do this. I have to press Control and then the bar under the trackpad. Is there a better shortcut to opening docs?
    Thanks.

    How new is that MBPro? It appears that the preferences you have are different from mine and that they support the additional gestures (as on the Mac Book Air). Methinks you should try the box "Tap to Click" under the single finger gestures as the next items Dragging and Drag Lock are what follow the box I suggested earlier on mine.
    If it doesn't work, turn it off and try something else.

  • How to using ical with two separate iphones

    hello
    trying to understand and learn how to use Ical with 2 different Iphones, using Icloud.

    To sync iCal across computers, the calendar needs to be published to a server. This can be a local server that you can set up, or it can be something like google or microsoft exchange or apple's mobile me. The best bet may be to wait until fall and see what iCloud offers!
    Sharing your screen can be accomplished a few different ways. You can have two iChat accounts set up, and have one logged in on each computer, and then use iChat's screen share feature. The other way is to go to System Preferences, Sharing, and then check the box next to Screen Sharing. You may have to adjust some of the settings in there, but give that a shot.

  • How to share iphoto with two users in the same imac maverick

    I can´t find the way to share iphoto/itunes with two users in the same imac with maverick software

    In conclusion, the new software is worse than the old one, really?  Because in my old mac I could share easily without copy with an external USB
    It's not iPhoto that dropped the ball but the system.  I believe it was Mavericks that broke the Shared folder compatibility for iPhoto, not iPhoto itself.
    Also having the library on an external HD is a good way of freeing up space on the boot drive to assure optional system and application performance.

  • How to open files with .IVR on a mac

    Does anyone know how to open a .IVR file on a macbook? or any apps for the mac book to open it ?

    You can try
    http://download.cnet.com/RealPlayer-SP/3000-2139_4-24751.html

  • HT1578 Ok, I saved it, as per above instructions. Now how to open it with my password ????

    I followed the instructions per above file
    It is locked since it does not open when clicked on
    But how to open it now, I have entered a password
    Thanks

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • Firefox opens automatically with two tabs, one of which will never close and can't be used, how can I fix this issue?

    I have a Macbook Pro running 10.6.8 and Firefox 5.0.1
    I have had this issue for a while and was hoping that the newest release would solve my problem, it didn't. I looked online for solutions, none of which fixed the issue
    *Some pointed the finger at the extension Invisible Hand, which I never had.
    *Some suggested putting Firefox into safe mode, this solves the problem, but since it stops me from installing any extensions this is not a workable solution.
    *It was advised that I create a new profile, which I tried, this did absolutely nothing, the blank page appeared again after a short period of time and still can't be closed or clicked on, and this was before I added any add-ons. Which leads me to believe that the issue lies with Firefox.
    Though on a side note when I quit Firefox, with only my current tab and the "tab that can't be closed" still open, Firefox notices that there are two tabs open and warns me that I am going to be closing both. The only work around I have found is to set the "tab that can't be closed" as an app tab for the current session, but when I open Firefox the next time, the app tab which was the "tab that can't be closed" can now be closed and a new "tab that can't be closed" appears as if it were a new blank tab, just like every other time I open Firefox.

    I started in safe Mode. I have the default theme. Starting in safe mode still gave me the same problem. I went back to the normal Firefox and still had the same problem. Yesterday I restarted my computer for 11 Windows updates. I am not going to spend all day starting and restarting my computer and removing my History and whatever else. Firefox should have a direct contact to it's users, to assist them instead of having their users work for them as forum responders and trouble shooters. This has already taken up way too much of my time.
    I will say in normal Firefox the additional NEW TAB had no URL in it, but it did have the 12 icons on the page. In Safe Mode it had a URL that began with Chrome and it had a blank page, it didn't have the 12 icons as in normal mode. I don't have anything Chrome on my computer.

  • How to open URL IView with dynamic url parameter (navigate_absolute)

    Hi Experts,
    i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
    and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
    Thx Markus

    Hi Markus,
    You can take help of the following code snippet.
    Here we are calling an Iview using absolute navigation and passing URL parameters as well
    * Select the input value entered and then pass it to REM INQ application---------
      DATA lv_inputbusobjid   TYPE          wd_this->Element_context-inputbusobjid.
      DATA lv_path            TYPE          string.
      DATA lv_tab_wd_param     TYPE          wdy_key_value_list.
      DATA lv_str_wd_param     TYPE          wdy_key_value.
      DATA lo_el_context      TYPE REF TO   if_wd_context_element.
      DATA api_component      TYPE REF TO   if_wd_component.
      DATA window_manager     TYPE REF TO   if_wd_window_manager.
      DATA window             TYPE REF TO   if_wd_window.
      DATA lo_api_component   TYPE REF TO   if_wd_component.
      DATA lo_portal_manager  TYPE REF TO   if_wd_portal_integration.
    * read the imput data first-------------
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUTBUSOBJID`
        IMPORTING
          value = lv_inputbusobjid ).
    ** call remuneration inquiry window using absolute navigation
      CLEAR lv_tab_wd_param.
    * Adding parameters
      lv_str_wd_param-key = 'sap-wd-configId'.
      lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lv_str_wd_param-key = 'BUSOBJ_ID'.
      lv_str_wd_param-value = lv_inputbusobjid.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      if lo_portal_manager is BOUND.
    * PCD
      lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
      lo_portal_manager->navigate_absolute(
        navigation_target   = lv_path
        navigation_mode     = if_wd_portal_integration=>co_show_external
        window_features     = 'toolbar=no,resizable=yes,scrollbars=yes'
        business_parameters = lv_tab_wd_param
      endif.
    Hope this helps
    Regards
    Manas Dua

Maybe you are looking for