Question: I know that this:

```
Process.Start("http://www.somewebsite.com/");

```

launches a webpage in the users default browser. But, I am creating a useful little application, and now I need to be able to launch a URL in Chrome, Opera, Firefox, and Internet Explorer.

My default browser is Chrome, but how can I launch the URL in Opera or Firefox?
This is a personal application, and is only going to be used on my computer, so there is no need to think about how to get the installation directory of the browsers.

My Firefox browswer is here: `C:\Program Files\Mozilla Firefox\firefox.exe`
Do I need to do this by passing the URL as a command line parameter to `firefox.exe` when I use `Process.Start()`? And if that is what I need to do, can someone show me an example of how to do it?

Answer: 
You could always do something like this:

```
<?php
    $posted = false;
    if( isset($_POST['submit']) ) {
        /* Process $_POST */

        /* Do your things */

        /* Set a variable hinting if a post has been done */ 
        $posted = true;
    }
?>
<!DOCTYPE html>
<html>
    <body>
    <?php if( $posted ): ?>
        <form method="post">
            <input name="foo" />
            <input name="bar" />
            <input name="car" />
            <input name="submit" type="submit" value="Submit" />
        </form>
    <?php else: ?>
        <h1>Thank you for contacting us!</h1>
    <?php endif; ?>
    </body>
</html>

```
Do it this way. 

```
<?php

$showform=true;  //dispaying the form for the first time

if(isset($_POST['submit'])){

       //check for errors
       if($errors){
          $msg="errors";
          $showform=true;  // if found errors, setting error msg and displaying the form
       }else{
          //process the form
          $showform=false;  //if no errors, setting success msg and hiding the form
          $msg="SUccess";
       }
}

if(isset($msg)){
         //display the success/error msg
         echo $msg;
}
if($showform==true){

   //your form code
   <form method="post">
        <input name="foo" />
        <input name="bar" />
        <input name="car" />
        <input name="submit" type="submit" value="Submit" />
    </form>
}

?>

```