![]() ![]() |
Dec 5 2004, 07:00 PM
Post
#1
|
|
|
Active Member Group: +Zenith User Posts: 127 Joined: 1-December 04 From: Metz, France Member No.: 2,051 ![]() |
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 |
|
|
|
Dec 5 2004, 07:59 PM
Post
#2
|
|
|
Active Member Group: +Zenith User Posts: 127 Joined: 1-December 04 From: Metz, France Member No.: 2,051 ![]() |
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 |
|
|
|
| Guest_Guest_* |
Dec 19 2004, 10:04 AM
Post
#3
|
|
Guests |
excuse me, but don't delete line 57,58,59 ...
that work |
|
|
|
Dec 19 2004, 04:27 PM
Post
#4
|
|
|
Active Member Group: +Zenith User Posts: 127 Joined: 1-December 04 From: Metz, France Member No.: 2,051 ![]() |
oups ... it's me :'(
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 01:44 PM |