i am trying to redirect a page according to the text value using switch and button click, its working fine in localhost but not working after hosting. please help to overcome this problem.. looking forward to it. thanks.
form coding
<form id="accounForm" class="form-horizontal" method="post" action="redirect.php" >
<INPUT type="hidden" VALUE ="<?php echo( htmlspecialchars( $row['jewellery_name'] ) ); ?>" name="textboxdata" >
<INPUT TYPE = "Submit" class="btn btn-blue" Name = "submit" VALUE = "Add Another">
</form>
redirect.php
<?php
session_start();
ob_start();
$textboxdata = $_POST['textboxdata'];
if (isset($textboxdata)) {
switch ($textboxdata)
{
case COL:
header("Location: new_item_5piececollar.php");
exit();
case BAB:
header("Location: new_item_babybangle.php");
exit();
case BRR:
header("Location: new_item_babyring.php");
exit();
case BAL:
header("Location: new_item_balla.php");
exit();
case BRC:
header("Location: new_item_bracelet.php");
exit();
case BUT:
header("Location: new_item_button.php");
exit();
case CNA:
header("Location: new_item_chain.php");
exit();
case CHK:
header("Location: new_item_choker.php");
exit();
case CHR:
header("Location: new_item_chur.php");
exit();
case CHU:
header("Location: new_item_churi.php");
exit();
case DUL:
header("Location: new_item_dull.php");
exit();
case FBA:
header("Location: new_item_fullballaakshi.php");
exit();
case GRR:
header("Location: new_item_gentsring.php");
exit();
case HNK:
header("Location: new_item_helenecklace.php");
exit();
case SOB:
header("Location: new_item_hsocketbouti.php");
exit();
case JHU:
header("Location: new_item_jhumka.php");
exit();
case KAN:
header("Location: new_item_kaan.php");
exit();
case LRR:
header("Location: new_item_ladiesring.php");
exit();
case LKT:
header("Location: new_item_locket.php");
exit();
case NKL:
header("Location: new_item_longnecklace.php");
exit();
case MAK:
header("Location: new_item_makhri.php");
exit();
case MGS:
header("Location: new_item_mangalsutra.php");
exit();
case MAN:
header("Location: new_item_mantasha.php");
exit();
case NOA:
header("Location: new_item_noah.php");
exit();
case NOT:
header("Location: new_item_noth.php");
exit();
case PDT:
header("Location: new_item_pendent.php");
exit();
case POL:
header("Location: new_item_pola.php");
exit();
case SAC:
header("Location: new_item_sankha.php");
exit();
case TAN:
header("Location: new_item_tana.php");
exit();
case TCK:
header("Location: new_item_tickli.php");
exit();
case TOP:
header("Location: new_item_tops.php");
exit();
case NCK:
header("Location: new_item_entry.php");
exit();
case WRI:
header("Location: new_item_wrislet.php");
exit();
default:
echo "Enter a number please.";
}
}
ob_end_flush();
?>