bonjour à tous

j ai découvert fckeditor il y a peu de temps.

j ai lu pas mal de tutos mais j arrive pas à l intégrer à ma page php.

j ai téléchargé fckeditor dans mon répertoire.

voici la page complete.

cette page me permet d'enregistrer un nouveau pays dans ma base mysql.
il fonctionne bien sans fckeditor mais j aimerai formater un peu .

mon but est bien sur de remplacer le textarea description par fckeditor.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php require_once('Connections/conn_newland.php'); ?>
<?php

<?php
// Set up connection to MySQL
$host = "localhost";
$user = "bobo";
$pwd = " ";
$dbConn = mysql_connect($host,$user,$pwd);
// Connect to newland_tours database
$database = "newland_tours";
mysql_select_db($database);
$query_rs_regions = "SELECT * FROM tbl_region ORDER BY regionName";
$rs_regions = mysql_query($query_rs_regions);
$row_rs_regions = mysql_fetch_assoc($rs_regions);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Newland Tours: Admin Insert a New Country Profile</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/newland.css" rel="stylesheet" type="text/css" />

</head>

<body>
 <tr>
  <td colspan="2">	
	<h1><br />
	  <a name="top" id="top"></a>Insert a New Country Profile </h1>
    <form name="frm_insertProfile" id="frm_insertProfile" method="post" action="admin_cp_insert_processor.php">
      <table width="95%"  border="1" cellspacing="0" cellpadding="3">
        <tr>
          <td width="34%">Region</td>
          <td width="66%">
		  <select name="region" id="region">
          <?php 
		  echo "<option
		  value=\"",$row_rs_regions['regionID'],"\">",$row_rs_regions['region==Name'],"</option>";
		  ?>
		  	<?php
		  	do 
		  		{
				echo "<option value=\"".$row_rs_regions['regionID']."\">".$row_rs_regions['regionName']."</option>";		  
				}
			while ($row_rs_regions = mysql_fetch_assoc($rs_regions));
			?>
		  </select></td>
        </tr>
        <tr>
          <td>Country Name </td>
          <td><input name="countryName" type="text" id="countryName" /></td>
        </tr>
        <tr>
          <td>Population (Do not use commas) </td>
          <td><input name="population" type="text" id="population" /></td>
        </tr>
        <tr>
          <td>Country Currency </td>
          <td><input name="country_currency" type="text" id="country_currency" /></td>
        </tr>
        <tr>
          <td>Description</td>
          <td><textarea name="description" cols="55" rows="9"  id="description"></textarea></td>
        </tr>
        <tr>
          <td>Image URL (Use this format: <strong>images/imagename.jpg</strong> and remember to upload the images to the images folder on the server)</td>
          <td><input name="imageURL" type="text" id="imageURL" /></td>
        </tr>
        <tr>
          <td>Image Alternate Description </td>
          <td><textarea name="imageALT" cols="55" wrap="VIRTUAL" id="imageALT"></textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" name="Submit" value="Submit" /></td>
        </tr>
      </table>
    </form>   
   </td>
 </tr>
</table>

<br />
<br />


</body>
</html>
<?php
mysql_free_result($rs_regions);
?>
voila si vous pouvez me dire le code à insérer, ce serait super.

merci à tous

steph