This'll probably be a snap for most of you, but it's causing me fits.
I have a form with a single field in it. The user inputs a number, in this case a defect #, and the then presses Submit. That number becomes part of a URL that I need the user to access.
Here is the code I am using:
<?php
if ($submit) {
header ("Location: http://www.somedomain.com/web-defect/ViewDefect.cgi?defect=$defect_number&CMVC_FAMILY=family@family.somedomain.com@80");
} else {
?>
<html>
<head><title>CMVC Web Interface</title></head>
<body>
<Table border="1">
<FORM METHOD="post" ACTION="<?php echo $PHP_SELF?>">
<TR>
<TD ColSpan=1 RowSpan=1 Align=Center>
<INPUT TYPE="text" NAME="defect_number" SIZE=6>
</TD>
</TR>
<TR>
<TD ColSpan=1 RowSpan=1 Align=Center>
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
</TD>
</TR>
</form>
</table>
<?php
} // end if
?>
</body>
</html>
This should be easy...input the number into the string, and it goes to the URL I create. The only problem is, that it's not doing anything at all! Not even returning a n error.
Any help would be appreciated.
Thanks,
Mark