HTML login Request form

Hi,
I've been researching how to do this for hours, only to find that there are only "PHP" and "MySQL" login tutorials.
What I want to do is login to a directory that is protected by ".htaccess" and ".htpasswd" files. For example, when I visit this directory in a web browser, http://www.example.com/protected, I get a login box with the fields "Username" and "Password". I would like to implement this login into my application, without that original login box appearing.
Any ideas?

If your application resides in a protected directory, I don't see how it can bypass the standard security - the end user won't be able to access the application until the directory password is provided.

Similar Messages

  • XSQL Equivalent of ASP Request.Form variable

    In ASP, I can get form values from an HTML page using Request.Form. How do I do this in XSQL?
    My intent is to read in the username and password from the login page, and then do authentication to see if they have the credentials to log in.
    If you can please email me any help at [email protected] that'd be great. Thanks!
    Malik Graves-Pryor

    I set the page up exactly as you showed Steven, but I get this error instead:
    <?xml version="1.0" ?>
    - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
    -->
    - <database>
    - <xsql-error action="xsql:query">
    <statement>SELECT DISTINCT FIRSTNAME AS "FIRST-NAME", LASTNAME AS "LAST-NAME", EMAIL AS "EMAIL", USERNAME AS "USERNAME", ACCESSLEVEL AS "ACCESSLEVEL", USER_ID, PASSWORD FROM LKUP_USER WHERE USERNAME = ? AND PASSWORD = ? ORDER BY USER_ID</statement>
    <message>ORA-01008: not all variables bound</message>
    </xsql-error>
    </database>I used the bind-params attribute in the manner that you described, and then loaded the XSQL page after submitting the username and password from my index.xhtml page via the action attribute on the form. Did I do something incorrectly?
    Also, how does the SQL statement know which parameter to use for each '?'
    i.e., I bound username and password in bind-params:
    bind-params="username password"
    how then does it know to use the correct value when I do this?
    WHERE USERNAME = ? AND PASSWORD = ?
    One more thing. I'm reading up on bind-params online and right now the only examples that are being shown are when the values are being passed through to the page via the URL, like so: http://www.oracle.com/xsql.xsql?username=Steve&password=Muench
    For obvious reasons, I don't want to include the password string in the URL. If I set this up correctly, the bind-params attribute should allow me to just post the information from my index page's form correct?
    Thanks again. This is invaluable.
    Malik Graves-Pryor

  • How to return a html repsonse after form guide rendering in browser?

    How to return a html repsonse after form guide rendering in browser indicating that server has recieved transmission and request is submitted succesfuly?
    I am rendering the form guide in browser using guide invoke service and when i submit the data in browser to server through guide , it is displaying some random number in browser?
    i need to display a resposne that request is submitted successfully?

    how could i define a variable with "html data" ?
    Create a variable of type document and then a service to read the html from where ever it's located. If you put it in LiveCycle, you can use the ReadRessource service. If it's on the file system, you can use the Read Document. If it's in the database, you can use the JDBC service.
    Also, one more doubt where should i use this variable in my process to get the same?
    You want the response once you've submitted the data, so the html is really the result of calling the process that's processing the data. So I would create an output variable of type document on that process.
    Right now it displays a random number in the browser because your submit process is long lived. When a process is long lived (asynchronous), you invoke it and then you get an identifier back. It's kind of a fire and forget. You can use that identifier to check the status of the long lived process, since long lived processes can take hours, days to complete. You don't want your browser to wait that long, hence the identifier.
    However if you change the process to be short lived (synchronous), the browser will wait for the result of the process, which really means the output variables for that process. If your output variable contains html, it'll display html.
    So the key is make you submit process short lived and populate the output variables appropriately.
    Jasmin

  • How to retrieve Request Form Data in OIM 11g for SOA workflows

    Hi,
    I have a business requirement wherein, I need to retrieve a field's value inside my SOA composite for further processing and decide on the Approver of the Request. Say for e.g. I'm having a field *"Country"* inside my Request Form, and what i need to do is, as soon as the request form is submitted, I need to retrieve the value for *"Country"* attribute inside my SOA Composite using Payload, and further process it. This scenerio is with respect to provision an application instance to a user.
    Now, in a similar scenario, where I was trying to create a user of type *"Contractor"*, I had used Request Service Api to retrieve the Basic information of the userform submitted, and decide on approval. Fortunately, the basic data like, First Name, Last Name, Login etc was successfully being fetched from the Request and I was able to perform further operations.
    Unfortunately, the same code which was working for Creation of a User, is not working when I'm trying to provision an application instance to the user.
    Below is the code which worked fine for me to retrieve basic request data for user creation, and isn't working for provisioning application instance:
    RequestService reqSvc = (RequestService)oimClient.getService(RequestService.class);
    String reqId = ((oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable", "payload", "/ns3:process/ns4:RequestID")).getText();
    System.out.println("request ID: " reqId);+
    Request req = reqSvc.getBasicRequestData(reqId);
    List <RequestEntity> targetEntities = req.getTargetEntities();
    System.out.println("targetEntities : " targetEntities);+
    System.out.println("------------");
    for (RequestEntity rea : targetEntities)
    +{+
    List <RequestEntityAttribute> attributes = rea.getEntityData();
    for( oracle.iam.request.vo.RequestEntityAttribute attribute : attributes)
    +{+  
    System.out.println("Attribute.getName() : " attribute.getName().toString());+
         if(attribute.getName().equals("User Manager"))
         +{+
    beneficiaryManagerKey = attribute.getValue().toString();
         System.out.println("User Manager : " beneficiaryManagerKey);+
    +}+
         e+lse if(attribute.getName().equals("User Login"))+
         +{+
    userid = attribute.getValue().toString();
         System.out.println("User Login  : " userid);+
    +}+
    +}+
    +}+
    Any pointers to this would be of a great help.
    Regards

    List <RequestEntity> targetEntities = req.getTargetEntities();
    System.out.println("targetEntities : " + targetEntities);
    System.out.println("------------");
    The above piece of code retrieves the attributes and their values from the request form while creating a user, but not from the request form, which provisioning a resource to a user.
    Regards,

  • Generate html post request from form9i applet

    I need to interact with a 3rd party credit card processing server form my form9i application.I need to create a html post request with all the input information encapsulated in it and also receive the http response and parse it and display an alert in the form(approved or rejected).Can I do that?
    any answer is going to help me greatly
    Sathi

    GET method may be the easier way. web.show_document('your_url?v1=123&v2=abc'); as of POST method, I guess you need JSP to do it, but how to do it from applet, I like to know too.
    getting back info, I used perl to read the html POST data on web server, then perl parses it and writes to a file on server, then use text_io or utl_file to read data into webform applet fields.
    The drawback I found that the cursor will not get back to webform applet from html pages. I tried to print every possible Javascript methods to wake up it, but it cannot get it.

  • Emailing for a request form

    I hired someone to create a request form for a company's website. He did that. And then, as of January the company's email service changed their security to stop spammers, spoofers and other malfeasance. And what then happened is that several people stopped getting email requests from the company's website for service, sales or support.
    The form is here: http://alertscientific.com/contact.php
    Here is what I have that checks to see if everything is filled out properly (it's a file called function.php and it's called by the main script):
    <?php
    function checkinfo(&$pst)
              $states = explode("|","AK|AL|AR|AZ|CA|CO|CT|DC|DE|FL|GA|HI|IA|ID|IL|IN|KS|KY|LA|MA|MD|ME|MI|MN|MO|M S|MT|NC|ND|NE|NH|NJ|NM|NV|NY|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VA|VT|WA|WI|WV|WY");
              $err = "";
              foreach($pst as $key => $val)
                        if(!empty($_POST[$key]))
                                  switch($key)
                                            case "dob":
                                                      if(!strtotime($_POST[$key]))
                                                                $err .= $pst[$key]." ".$_POST[$key]." is not a valid date.\r<br />";
                                                      break;
                                            case "phone":
                                                      $temp = $_POST[$key];
                                                      if(substr($temp, 3, 1) != "-")
                                                                $temp = substr($temp, 0, 3)."-".substr($temp, 3, strlen($temp)-3);
                                                      if(substr($temp, 7, 1) != "-")
                                                                $temp = substr($temp, 0, 7)."-".substr($temp, 7, strlen($temp)-7);
                                                      if(!preg_match("/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $temp))
                                                                $err .= $pst[$key]." ".$_POST[$key]." is not a valid phone number.\r<br />";
                                                      break;
                                            case "state":
                                                      if(!in_array($_POST[$key], $states))
                                                                $err .= $pst[$key]." ".$_POST[$key]." is not a valid state. Please use your state's two character abreviation.\r<br />";
                                                      break;
                                            case "email":
                                                      if(!filter_var($_POST[$key], FILTER_VALIDATE_EMAIL))
                                                                $err .= $pst[$key]." ".$_POST[$key]." is not a valid email address.\r<br />";
                                                      break;
                                            case "zip":
                                                      $temp = str_replace("-","",$_POST[$key]);
                                                      if(!is_numeric($temp) || (strlen($temp) != 5 && strlen($temp) != 9)) {
                                                                $err .= $key." --- ".$pst[$key]." ".$_POST[$key]." is not a valid zip code.\r<br />";
                        } else {
                                  $err .= $pst[$key]." is empty.\r<br />";
              if($err != "")
                        return "The following errors were found:\r\r<br />".$err;
              } else {
                        return $err;
    ?>
    That is not the problem.
    Now, we come to the problem:
    validate.php does all of the heavy lifting.
    <?php
    require_once("function.php");
    $expected = array("name"=>"Name", "need"=>"need", "address1"=> "Address 1", "city"=>"City", "state"=>"State", "zip"=>"Zip", "email"=>"Email", "phone"=>"Phone" );
    $options = array("name"=>"Name", "title"=>"Title", "company"=>"Company", "need"=>"need", "address1"=>"Address 1",  "address2"=>"Address 2", "city"=>"City", "state"=>"State", "zip"=>"Zip", "email"=>"Email", "phone"=>"Phone", "httpagent"=>"Browser info: ", "httpref"=>"Referrer", "ip"=>"Ip address");
    $needs = array("service"=>" service.", "sales"=>" a salesperson contact you.", "literature"=>" literature be sent to you.");
    $wants = array("service"=>" service.", "sales"=>" to be contacted by a salesperson.", "literature"=>" that literature be sent.");
    $errors = checkinfo($expected);
    $serv_two = "[email protected]";
    $lit_one = "[email protected]";
    $sales_two = "[email protected]";
    if($errors == "") {
              $replace = array("PHPNAME", "PHPNEED", "PHPIPADDRESS");
              $with = array($_POST['name'], $needs[$_POST['need']], $_POST['ip']);
              $output = file_get_contents("sendail.html");
              $output = str_replace($replace,$with, $output);
              $message = $_POST['name']." has requested".$wants[$_POST['need']]."\r";
              foreach($options as $key => $val) {
                        $message .= $val.": ".$_POST[$key]."\r";
        $headers =  'From: [email protected]' ."\r\n" .'Reply-To: [email protected]'. "\r\n" .'X-Mailer: PHP/' . phpversion();
              switch($_POST['need']) {
                        case "service":
                                  $subj = "Service request";
                                  mail($serv_one, $subj, $message, $headers);
                                  mail($serv_two, $subj, $message, $headers);
                                  break;
                        case "sales":
                                  $subj = "Sales request";
                                  mail($sales_one, $subj, $message, $headers);
                                  mail($sales_two, $subj, $message, $headers);
                                  break;
                        case "literature":
                                  $subj = "Literature request";
                                  mail($lit_one, $subj, $message, $headers);
                                  mail($lit_two, $subj, $message, $headers);
                                  break;
              echo $output;
    } else {
              echo "Errors:<br />".$errors;
              echo "Please click the back button and update your choices.<br />";
    echo "Validating...";
    print_r($_POST);
    ?>
    At issue here are the headers (shown in red). The incoming email server is blocking stuff from my website because my website is not the email server. And so no email is received, it is assumed to be spam.
    How do I tease the actual sender's email out of the array  of stuff and place it into the headers?
    Thanks!

    Here's what I was looking for:
    $headers =  'From:'.$_POST['email']."\r\n" .'Reply-To: '.$_POST['email']."\r\n" .'X-Mailer: PHP/' . phpversion();
    Now, here's the problem...
    The folks at the incoming server changed their security protocols in January, resulting in lots of messages not being delivered -- but the company had a second person receiving emails who did recieve them.
    So, Some people got the emails, others didn't.
    The email hosting people are very nice on the phone, but they blamed my server. Said that I had to change to port 2525. I was set up to port 25 (default for email) and 587. So I did that, as well as changed the code. Now, the email is from the sender with the reply-to from the sender.
    But here is going to be the next step: If these people keep blaming "insecurity" at my end, I'll tell the company to switch to my server. Then a company whose name includes "Forest" will lose some easy money for providing email and webmail.
    This problem will be solved. I have changed php code and I have altered the port. If their host isn't getting the emails in all in-boxes, we switch on Monday. I don't have time to play games.
    -Mark

  • BPELConsole: Initiate does not show HTML or XML form to fill in variables

    Hi,
    i am using a xsd with a cascaded import of other xsds.
    If i use one import layer everything is fine.
    But if i use something like:
    1.xsd (imports 2.xsd)
    2.xsd (imports 3.xsd)
    The BPELConsole refuses to show me a HTML or XML form where i can fill in the variables...

    Hi,
    For time being create one dummy process with request and response as a string type and call your process with the [xml]string input by creating partnerlink.
    Generate xml from the schema with xml generator tools.
    or use java api to invoke the process.
    Regards,
    Bogi

  • Login user form

    Hello -
    I've created a login user form using the addt, but my columns are encrypted for user password using aes. How can i modify the kt_login_password to decrypt the string to verify the users password.
    Or how can i modify the custom recordset created by addt to decrypt.
    Thanks in advance for your help.
    Theo

    The safest way to do that is on submit of the login html page, validate the username/password, and if successful, stream the PDF file to the response object.
    Howard
    http://www.avoka.colm

  • REQUEST FORM

    Dear all
    I want to make a request form make something similar this WEBLINK
    How can make its PHP or ASP
    THanks
    Manoj

    Does breaking the page down (see below) help you to locate the scripts/css required?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="http://www.vistajet.com/Scripts/css/humanity/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />
    <script src="http://www.vistajet.com/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="http://www.vistajet.com/Scripts/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="http://www.vistajet.com/Scripts/Shared/master.js" type="text/javascript"></script>
    <style>
    body
    font-size: 12px;
    background-color: #fff;
    .ui-timepicker, .ui-datepicker
    background-color: #CCF; border: 1px solid #369; padding:3px;
    h3 {
        font-size: 20px;
    </style>
    </head>
    <body>
        <form action="/en/ContactUs/request-quote" method="post">
    <h3>Outbound</h3>           
    <div class="form-row datepicker">
    <label for="OutDepartureDate">Date of Departure:</label>
    <input id="OutDepartureDate" name="OutDepartureDate" type="text" value="5/24/2012" />
    </div>
    <h3>Inbound</h3>
    <div class="form-row datepicker">
    <label for="InDepartureDate">Date of Departure:</label>
    <input  id="InDepartureDate" name="InDepartureDate" type="text" value="5/24/2012" />
    </div>
    </form>
    </body>
    </html>

  • Integrating APEX items into an HTML Login Screen

    I've just been presented with an attractive html login screen that our art department has created for our new application. The only problem is that the art department doesn't know a thing about APEX. They've drawn a nice looking screen using several images laid out into tables and even included an html form for the login credentials.<br>
    <br>
    I'd really like to use as much of their page as possible and I'm close to getting something that at least looks like it might work. I've encapsulated the entire thing into htp.p statements inside of a PL/SQL region on my Login page. I've removed their form elements and placed my own fields using HTMLDB_ITEM.TEXT calls. I also believe that I will be able to read back the values using calls to HTMLDB_APPLICATION.G.Fxx for each of my IDX values. I haven't tested that part yet, but it seems like it should work.<br>
    <br>
    The part that has me stumped right now is modifying the TEXT item into a PASSWORD item type. I've tried adding type="password" into the attributes parameter and I do see that in the page source, but it's after the default type="text" statement and is therefore ignored. The statement I'm executing for my password field is: <br><br><b>htp.p(htmldb_item.text(22,NULL,30, 100, 'type="password" onkeypress="return submitEnter(this,event)"', 22, 'Password:'));</b><br>
    <br>
    It doesn't seem like there is much reason to go on if I can't hide the contents of my password field, so I though I should ask for some advice before going too much further.<br>
    <br>
    Am I missing a better way to override the item type here, or is there a better way to place my login fields at specific locations inside of an existing html document? I can get the fields above, below or next to their page but that looks terrible. I could also break up their page into a top section and a bottom section with my fields in a middle region, but that would also ruin the look of the page.<br>

    Hi, Etown88.
    You've learned two important lessons:
    1. Undocumented features are undocumented for a reason.
    2. Never try "tricks" you read in magazines or on the Web unless they also clearly specify how to undo the trick. In fact, you should skip tricks like this: review Lesson 1 above.
    The specific "trick" you cite was in Macworld recently and can be found on their web site here and here, the latter under the heading "Make your login window informative".
    You'll also note at the end of the second article that it contains a correction: sometimes tricks have typos that can really ruin your day.
    The "trick" probably originated as a post on the Mac OS X Hints site since the column was written by Rob Griffiths who runs that site.
    To "undo" this, simply specify HostName, which is the default:
    defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
    This is stated in the articles cited above, but one has to realize it as its stated subtly, e.g."• HostName to show the default display"Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • OIM11GR2 request Form

    Hi All.
    is it possible to pre-populate values in request form ( not the process form ) in OIM11GR2 ?
    Thank you

    Yes this is possible. try below link similar to r1
    http://identityandaccessmanager.blogspot.in/2011/07/prepopulate-adapter-in-oim-11g.html
    Develop pre-populate adapter in request dataset in OIM 11G
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14309/request.htm#CIHHCHIH

  • Standard warning messages in Vendor Request Form

    Hi All,
    Please let us know, how are the standard warning messages in Vendor Request Form while creation/search are displayed.
    For example, I am getting an soft warning message text, at vendor creation which says "Some of the records were not found; for more information, check the log".
    Here we don't have any log traces to be checked for, and we have verified the back end record resultset count which is same, irrelevant of the warning message being shown.
    These messages are displayed only at two places:
    1) The search navigation page, where all the searched record results are displayed and we continue further for creation of vendor workflow.
    2) When the workflow of vendor creation is completed, along with the "Workflow has been completed" success message, this warning message is also shown.
    I want to know, from where these messages are being populated and how to suppress these messages.
    Kindly suggest.
    Thanks in advance!
    Message was edited by: Oxana Noa Zubarev

    Hi All,
    Attaching the screen shot for refernce:
    After we click on "continue with create/edit" button, after few details have been entered, the work flow completes.
    There are we are getting these error message as highlighted above.
    Let me know if any info from my end would help in getting the root cause.
    Thanks in advance.

  • Display Request Form is not triggering in Standard SAP WDA : FITE_REQUEST

    Hi Guru's,
    In our Travel Scenario in NWBC, Once the employee finish the Travel Request he is unable to take print out by clicking on Display Request Form. Nothing is happening when we click on "Display Request Form".
    The Form I am using is FITP_REQUEST_FORM. It is displaying perfectly when I execute via SFP. The problem I am facing is nothing is happening when I click on "Display Request Button" in WDA
    Application:
    FITE_REQUEST
    Application Component:
    FI-TV
    Component:
    FITE_VC_REVIEW
    Window:
    VC_WINDOW
    View:
    REVIEW_VIEW
    Application Component:
    FI-TV
    Give me some lights to solve this issue
    Thanks,
    Namsheed.

    Hi Samuli,
    Issue is solved. It was Program Error from SAP side.
    Now All the buttons are working fine and I am able to print PDF also.
    Solution is implement the note 2031585 - SAP NWBC ABAP Runtime Patch 40.
    System Details : ECC 6.0 NetWeiver 7.4 ,
                                EHP 7 , SP-Level 06
    Thanks a lot for all your suggestions.
    Regards,
    Namsheed.

  • Attachments on the Request Form

    Attachments on the Request Form
    I know you can add file attachments in the initial customer request by selecting the Add and Review Order button and attaching a file on the Order Review form.  But is there a way to have a file attachment button on the request form that will attach a file to the serivce request the same way?
    We are using RequestCenter 2007_1
    thanks
    CMH

    Here is an approach:
    1. Implement something like this on the file server:
    http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7361&lngWId=4
    (We use an inhouse version of this)
    I would change this script to post back the file name to the parent window as well as some naming/size validations, etc ...
    2. Call the file upload functionality from your service fo

  • Question on the upload attachments process in a request form

    hi,
    I have a question on the upload attachments process in a request form. I have 2 pages, one is a request form and the other is an attahment page
    The request form let users fill the mandatory fields (e.g. name, email, address...) And in the form, there is a link (URL without submit) to the attachment page.
    In the attachment page, users can upload the supporting file for their rquest. The file will be uploaded to APEX_APPLICATION_FILES view and then it will be copied it to a customized table (table A) and remove from the view.
    When the users finish uploading files (i.e. the files are stored in table A), users need to press a "Done" button back to the request form to submit the form.
    My question is:
    As the request form is not yet submitted while the attached files are stored in table A, there is no request_id (request from table primary key generated in an Insert trigger after submission) is generated to tag with the files in table A. Is there any standard practice to do this?
    What I am doing now is to generate a hidden value in sequence when user goes to the attachment page. The hidden value is stored in table A togehter with the files when uploading. When user goes back to the request form, the hidden value is passed back as session cache. When the request form is submitted, I make an update statement by using the hidden vaule in the Insert trigger to tag the request_id to the attached files in table A.
    Is my way appropriate?
    Thanks for advice.
    cheers,
    Pong

    Pong,
    Yes, this would work just fine. You may want to consider enabling session state protection so that your process is not succeptable to URL tampering, which would cause a user to change the value of the REQUEST_ID in the URL and potentially associate other attahments with their request.
    Thanks,
    Scott

Maybe you are looking for

  • Adobe Air on Windows Mobile 5.0

    Hello, Are Air Apps supported in Windows Mobile, Palm OS and Symbian ?  If yes what needs to be done to install them on these platforms ? Is Flashlite sufficient ? Also, is there a automatic online/offline synchronization mechanism between server and

  • How to use JDK5.0 new feature code in tomcat 5.5.9, jsp files

    Hi Everyone: I am trying to use JDK5.0 new feature code -- for loop in jsp file , but got compile error , i try the same code in the java file which is working fine. i am wondering is it tomcat jsp compiler problem ? following is my code and error ms

  • Instruction about cleaning the cooling ventilators

    1. Switch off the laptop 2. Get a vacuum cleaner with hoze & small nozzle attachment 3. Get the nozzle close upto the laptop fan vents - clean both below and at the back - any holes that air ventilates through. * BE CAREFULL NOT TO SUCK UP ANY KEYS O

  • Set photo source to RSS?

    Up to OS X 10.7, you could point screensaver to an RSS feed as the source of photos to display.  It seems this functionality was removed in OS X 10.8 :-( I've found some workarounds on the web, mostly scripts that boil down to downloading photos from

  • User32.dll error in Safari 4

    I installed Safari 4 about a week ago. (previous Firefox user) everytime i click onthe Safari icon, either on the desktop, or in the quicklaunch toolbar, i get this window: *"safari.exe entry point not found"* "The procedure entry point IsThreadDeskt