Jeg ville nok lave:
if (empty(trim($tjek))) - så man heller ikke bare kan indtaste mellemrum.
Og så lige en ekstra note, så går jeg ud fra at det følgende er informationer fra et kreditkort, der formentlig ikke er dit eget?
@$_SESSION['kortnummer'] = addslashes($_POST['kortnummer']);
@$_SESSION['umdr'] = addslashes($_POST['umdr']);
@$_SESSION['uaar'] = addslashes($_POST['uaar']);
@$_SESSION['cvc'] = addslashes($_POST['cvc']);
Derfor vil jeg gerne lige give dig den her advarsel for din egen skyld:
First of all we highly recommend that no card data is stored locally in any database or temporary memory. If that is not an option, then you have to take a closer look at the PCI security standards council. If you want to be able to handle cardholder data, your shop and server where your data is located has to pass a PCI certification. Read more about PCI on the following site:
https://www.pcisecuritystandards.org/