Jump to content

HELP REDIRECTION


sethupathy

Recommended Posts

in a form i ask the client if they want to use form for type of comapnie 1 or 2

 

i have been using php to redirect but i am having problem using header can someone

tell me how would i do this using java

 

<?php

$choice = $_POST['type']; //Use addslashes(  ); around the $_POST var to increase security

 

if( $choice == "1" ){

 

   header( 'location: /company1.html' );

   exit;

 

}

 

if( $choice == "2" ){

 

  header( 'location: /company2.html' );

  exit;

 

}

?>

 

PLS HELP

Link to comment
https://forums.phpfreaks.com/topic/55619-help-redirection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.