Jump to content

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);
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.