PHP question

a link (socket) to another server?

if not, what other sort of link would php (a solely serverside language) open?

... read above as 'please explain more'.
 
For example, I thinking of making a form using radio type. To let user to choose which option they want then it will go to the .php file to check whether which option they had choosen then redirect them to certain link.

example of the code
<form action="try.php" method="post">
<input type="radio" name="x value="one" checked>One
<input type="radio" name="x" value="two">Two
<input type="submit">
</form>
 
In try.php I would choose the page where now should be redirected using a conditional:

Code:
switch ($HTTP_POST_VARS["x"]){
   case "one":
	   header("Location: info.php");
	break;
	case "two":
	   header("Location: index.php");
	break; 
	case "three":
	   header("Location: whatever.php");
	break;
}
 
Back
Top