I am coding a form in php the problem is is this coding right if ( !isset ( $_GET[...

rose34ll2

New member
...'ccnumber' ] )) echo &quo? seems when i view the form that part I posted isnt working in the coding and is showing as text.. can anyone help me with this

if ( !isset ( $_GET[ 'ccnumber' ] ))
echo "
<p>Enter Your Credit Card Number.</p>
";
else {
$Payment = $_GET['ccnumber'];
$ValidPayment = str_replace("-", "", $Payment);
$ValidPayment = str_replace("-", "", $ValidPayment);
if (!is_numeric($ValidPayment))
echo "
<p>You did not enter a valid credit card number!</p>
";
else {
echo "
<p>Your credit card number is $ValidPayment.</p>
";
</p>
</form>
<hr/>
 
Back
Top