CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

 Forum Rules Also hosted on SourceForge and FreshMeat
Reply to this topicStart new topic
> replacing image_description with radio buttons
CharlyG
post Dec 5 2004, 07:00 PM
Post #1


Active Member
Group Icon

Group: +Zenith User
Posts: 127
Joined: 1-December 04
From: Metz, France
Member No.: 2,051

France




hello !
I have a small problem: I would like to replace the fields
"image_description" by buttons radio, in add.php.

then, in the place of:

CODE
<td width='60%'><textarea name="image_description" rows="3" cols="40" class="textBox" style="width:100%"></textarea></td></tr>


I put :

CODE
<td width='60%'><form method="POST">
   <p><input type="radio" name="image_description" value="Front" checked>Front</p>
   <p><input type="radio" name="image_description" value="Back">Back</p>
</form></td></tr>


but that does not function. the buttons are posted but I do not manage to send image.

Can you help me ? please
Go to the top of the page
 
+Quote Post
CharlyG
post Dec 5 2004, 07:59 PM
Post #2


Active Member
Group Icon

Group: +Zenith User
Posts: 127
Joined: 1-December 04
From: Metz, France
Member No.: 2,051

France




ok it's good for me .... I found the solution :

CODE
<tr><td valign='top' width='40%'><?php echo $lang['image_description'] ?> </b></td>
<td width='60%'><form method="get">
   <p><input type="radio" name="image_description" value="Front" checked>Front</p>
   <p><input type="radio" name="image_description" value="Back">Back</p>
     <?php $uploaded_description = $_GET['image_description'];
   for ($i = 0; $i < count($uploaded_description); $i++)
{
echo $uploaded_description[$i].'</form>';
}
   ?>
</td></tr>


and don't forget to delete lines 57,58,59 :

CODE
 //allow html only for admins
 if(loggedIn($config) && adminStatus($config))   $uploaded_description = charsEscaper($_POST['image_description'], $config['escape_chars']);
 else   $uploaded_description = htmlentities(charsEscaper($_POST['image_description'], $config['escape_chars']), ENT_QUOTES);


all is good dance.gif
Go to the top of the page
 
+Quote Post
Guest_Guest_*
post Dec 19 2004, 10:04 AM
Post #3





Guests







excuse me, but don't delete line 57,58,59 ...
that work dance.gif
Go to the top of the page
 
+Quote Post
CharlyG
post Dec 19 2004, 04:27 PM
Post #4


Active Member
Group Icon

Group: +Zenith User
Posts: 127
Joined: 1-December 04
From: Metz, France
Member No.: 2,051

France




oups ... it's me :'(
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 01:44 PM