Page 275 - Computer Software Application TP - Volume 1
        P. 275
     COMPUTER SOFTWARE APPLICATION - CITS
                                </body>
                                </html>
           3  Save the program in C:\Apache24\htdocs in a folder with .php extension
           4   Run the Apache services from windows services
           5   Open the browser and type the following address
                 http://localhost/foldername/
            6  Click the php file to run the program
            7  Click the “Next Page” link to pass ‘Session ID’ in the next page.
           II  Pass Session ID in Forms
           1  Open the text editor
           2  Write the following codes
                                 <html>
                                 <body>
                        <?php
                         session_start();
                                $sessionId = session_id();
                                echo “<form action=’process_form.php’ method=’post’>”;
                                echo “<input type=’hidden’ name=’PHPSESSID’ value=’$sessionId’>”;
                    echo “<input type=’text’ name=’username’ placeholder=’Enter your  username’>”;
                                echo “<input type=’submit’ value=’Submit’>”;
                                echo “</form>”;
                                ?>
                                </body>
                                </html>
           3  Save the program in C:\Apache24\htdocs in a folder with .php extension
           4  Run the Apache services from windows services
           5  Open the browser and type the following address
                 http://localhost/foldername/
           6  Click the php file to run the program
           7  Click the “Submit” button to pass ‘Session ID’ in the next page.
                                                           260
                                CITS : IT & ITES - Computer Software Application - Exercise 54
     	
