Answered Questions

  • Web Page Redirect

    What are the three ways of redirecting a web page logincheck.php to logged.php using1. HTML2. JavaScript3. PHP

    kedarPhp

    • Sep 2nd, 2010

    At the starting of the logincheck.php page you can add the javascript code as follow

    Code
    1. <script language='javascript'>
    2. you can use one of the following
    3. 1:location.href='login.php';
    4. 2:window.location='login.php';
    5. 3:window.location.href='login.php';
    6. </script>
    7. <?php
    8. exit();  //write the exit to exit the current php page execution
    9. ?>

  • @ symbol before any variable

    Why do we put @ symbol before any variable?

    sakshi

    • Oct 22nd, 2017

    It suppress the errors or warnings.
    eg@file_get_contents(www.abc.com);
    if www.abc.com is not accessible it will suppress the errors.

    abc

    • Sep 12th, 2011

    To supress the error

  • Form Submit

    Can you submit a form without using submit button? If Yes, How?

    aditya dhanraj

    • Apr 29th, 2015

    Yes,by using submit() function of java script

    Arun

    • Jan 29th, 2015

    i know its a bit late to answer but the above answers may mislead freshers. Ram redirection is not form submit, to submit a form without submit button, we may use java script. eg: ;{geshibot languag...