Jump to content

Registration Security


Arbitus

Recommended Posts

What are the restrictions you want?

 

Be descriptive, no more than x characters must be at least x characters I do not want anything but numbers, -, _ and letters but has to have at least x letters no more than x numbers and can only have 1 - or _....

 

 

strip_tags

 

That would get rid of any html, as far as php...let's try not to sit on the "cannot", and go with the "can".

 

It is a lot easier to say this can have this, instead of this cannot have this and this and this or this or this and that or this.

 

A lot easier and less coding.

You would do it the same way as you would for any form element.

 

<input type="radio" name="radioButtons" value="1">
<input type="radio" name="radioButtons" value="2">

<?php

$radioButtons = $_POST['radioButtons'];

$query = "INSERT INTO tableName ('fieldName') values($radioButtons) WHERE this='$that'";
$result = mysql_query($query);
?>

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.