Aller au contenu

yoyo1404

Actif
  • Compteur de contenus

    17
  • Inscrit(e) le

  • Dernière visite

Messages postés par yoyo1404

  1. Je sais que ca n'a rien à voir mais j'aimerais avoir un petit eclaircissement, je suis aller sur ce site de forum et j'ai vu qu'il réussissait à trouver les mots de passe et les id.

    Je suis en train de finaliser la creation d'un site privé que j'ai sécurisé via .htaccess et .htpasswd je suis chez ovh et j'ai cripter les mots de passe avec leur crypteurs. personne ne doit pouvoir rentrer normalement à l'intérieur d'une rubrique restreinte sinon je vais me faire taper sur les doights est ce que je risque qq chose???

  2. Bon voila, j'aimerais que certaines pages de mon site soit protéger par un mot de passe comment je dois faire. Je pense que la page de formulaire doit se créer en asp et etre relié à une BDD My SQL mais avant de me lancer là dedans, j'aimerais savoir si je ne fait pas fausse route. Merci pour votre aide.

  3. print "<br><br><h3><font color=red>";
    if ($envoi)
    print "Remerciementformulaire.html";
    else
    print "Désolé, votre demande n'a pu aboutir, veuillez la renouveler" ;
    print "</font></h3>" ;

    }
    ?>
    <html>
    <head>
    <meta http-equiv="refresh" content="0;http://www.tonsite.com/index.php" />
    </head>
    <body>
    <p>Vous allez être redirigé vers l'accueil du site.</p>
    </body>
    </html>
    <?php
    }
    ...
    ?>



    Je ne sais pas ou tu veux que je le mette, si je fais comme ca, j'obtiens un message d'erreur...

  4. Et ce ci, je le met à la fin de toutes les dernieres lignes et je les effacent:

    print "<br><br><h3><font color=red>";
    if ($envoi)
    print "Remerciementformulaire.html";
    else
    print "Désolé, votre demande n'a pu aboutir, veuillez la renouveler" ;
    print "</font></h3>" ;

    }
    ?>

    c'est ca ce que tu veux dire. J'ai un peu de mal à te suivre.

  5. Merci à tous, je viens enfin de trouver toutes les reponses à mes questions. une seule subsiste néamoins. quelle ligne de code dois je introduire dans ma page php pour rediriger les visiteurs vers une page de mon choix, comme la page d'accueil par exemple???

  6. Bon voila ce que j'ai fait: j'ai repris mon formulaire dont voici le code:

    <form name="form1" method="post" action="reservation.php">
    <div align="center">
    <table width="710" height="578" border="0" class="test">
    <tr class="Style1">
    <td width="251" height="135"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290"><div align="center"></div></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="111"> </td>
    <td width="143" align="right" valign="top"><p class="Style1">Name</p>
    <p class="Style1">Surname</p>
    <p class="Style1">E-mail</p></td>
    <td width="8"> </td>
    <td width="290" valign="top"><p> <span class="Style1">
    <input name="nom" type="text" id="Nom">
    </span></p>
    <input name="prenom" type="text" id="Prenom">
    </span></p>
    <p>
    <input name="email" type="text" id="email">
    </p></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="42"> </td>
    <td width="143" align="right">You are </td>
    <td width="8"> </td>
    <td width="290"> <p>
    <label>
    <input type="radio" name="member" value="member">
    A member</label>
    <br>
    <label>
    <input type="radio" name="guests" value="guest">
    An unaccompanied guest</label>
    <br>
    </p>
    </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="26"> </td>
    <td width="143" align="right">You would like to reserve </td>
    <td width="8"> </td>
    <td width="290"><input name="greenfee" type="checkbox" id="greenfee" value="greenfee">
    a Green Fee
    <input name="room" type="checkbox" id="room" value="room">
    a Room </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="21"> </td>
    <td width="143" align="right">Arrival Date </td>
    <td width="8"> </td>
    <td width="290"><select name="arrivalday" id="arrivalday">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    </select>
    <select name="arrivalmonth" id="arrivalmonth">
    <option selected>January</option>
    <option>February</option>
    <option>March</option>
    <option>April</option>
    <option>May</option>
    <option>Juin</option>
    <option>July</option>
    <option>August</option>
    <option>September</option>
    <option>October</option>
    <option>November</option>
    <option>December</option>
    </select>
    <select name="arrivalyear" id="arrivalyear">
    <option selected>2006</option>
    <option>2007</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="29"> </td>
    <td width="143" align="right">Departure Date </td>
    <td width="8"> </td>
    <td width="290"><select name="departureday" id="departureday">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    </select>
    <select name="departuremonth" id="departuremonth">
    <option selected>January</option>
    <option>February</option>
    <option>March</option>
    <option>April</option>
    <option>May</option>
    <option>Juin</option>
    <option>July</option>
    <option>August</option>
    <option>September</option>
    <option>October</option>
    <option>November</option>
    <option>December</option>
    </select>
    <select name="departureyear" id="departureyear">
    <option selected>2006</option>
    <option>2007</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="29"> </td>
    <td align="right">Number of Rooms</td>
    <td> </td>
    <td><select name="nbreroom" id="nbreroom">
    <option selected>0</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="27"> </td>
    <td align="right">Villa / Appartment </td>
    <td> </td>
    <td><select name="Villa" id="Villa">
    <option selected>Choose</option>
    <option>Monte Carlo</option>
    <option>St Tropez</option>
    <option>Cannes</option>
    <option>Ste Maxime</option>
    <option>St Paul</option>
    <option>Pagnol</option>
    <option>Les Arcs Appartment</option>
    <option>Grimaud Appartment</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="84"> </td>
    <td width="143" align="right" class="Style1">Comments</td>
    <td width="8"> </td>
    <td width="290"><textarea name="comment" rows="3" class="Style1" id="comment"></textarea></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="22"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290"> </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="23"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290">
    <input type="submit" name="Submit" value="Envoyer"></td>
    </tr>
    </table>
    </div>
    </form>

    et j'ai egalement repris la page php de l'ancienne version du site:

    <?php
    if (isset($_POST['Submit']))
    {
    $nom = $_POST['nom'] ;
    $prenom = $_POST['prenom'] ;
    $email = $_POST['email'] ;
    $member = $_POST['member'] ;
    $guest = $_POST['guests'] ;
    $greenfee = $_POST['greenfee'] ;
    $room = $_POST['room'] ;
    $arrivalday = $_POST['arrivalday'] ;
    $departureday = $_POST['departurday'] ;
    $arrivalmonth = $_POST['arrivalmonth'] ;
    $departuremonth = $_POST['departuremonth'] ;
    $nbreroom = $_POST['nbreroom'] ;
    $villa = $_POST['villa'] ;
    $comment = $_POST['comment'] ;

    $message = "Nouvelle réservation,
    Nom : $nom
    Prénom : $prenom
    Email : $email
    Member : $member
    Guest : $guest
    Green Fee : $greenfee
    Stay : $room

    Du $arrivalday
    du mois : $arrivalmonth

    Au jour : $departureday
    mois : $departuremonth

    Nbre de chambre : $nbreroom

    Villa principale désirée : $villa

    Renseignements : $comment " ;

    $envoi = mail("pia_AT_leprince.fr","Réservation",$message) ;

    print "<br><br><h3><font color=red>";
    if ($envoi)
    print "Remerciementformulaire.html";
    else
    print "Désolé, votre demande n'a pu aboutir, veuillez la renouveler" ;
    print "</font></h3>" ;

    }
    ?>

    en le modifiant avec les nouvelles id de variables. sans pouir autant modifier la base de donner en elle-meme. Cependant, lorsque je recois le mail, seul quelques elements s'affichent et d'autrres sont "oublier".

    Dois je toucher au sql??? et dans ce cas, ou est ce que je le trouve

  7. Voila, je viens de mettre en ligne mon site web cependant, j'ai deux petits soucis:

    Le Premier, c'est que lorsque je demande à dreamweaver de valider mon site, il me lance un tas de probleme avec des balises "embed"

    le second, c'est que auparavant, lorsque les visiteurs tapaient http://www.xxx.fr la page d'accueil s'affichait et la, j'obtient l'aborescence de mon site sans qu'il affiche la page d'accueil.

    Je suis désolé mais j'ai l'interdiction de la part de mon employeur de divulguer l'adresse etant donné le caractère privé du site.

    Merci bcp pour vos réponse

  8. Sinon, en ce qui concerne les commentaires, tu peux les supprimer, mais je te conseille tout de même de les laisser, ils sont là pour t'aider à comprendre.

    Mais ils n'apparaitront pas dans ma page web???

    De Plus, je suis en train de voir comment les modifier et de comprendre le code de ce formulaire. Je pense que jke suis obligé de créer une base sql pour pouvoir utiliser ce code non???

  9. Le plus simple est d'utiliser quelque chose de "tout fait" et de le copier-coller. Pas besoin d'aller très loin, Webmaster-Hub a ce qu'il te faut: Un "mailer" pour votre site web. Tu te compliqueras moins la vie.

    En effet, Merci Dudu,

    Cependant, j'aimerais savoir si je pouvais modifier ce qu'il y a à l'intérieur de ce code, en effet, malheureusement, celui ci est trop, "simple" pour moi... est ce que, grâce à Dream weaver, je peux le modifier ou est ce qu'il ne faut pas y toucher pour qu'il marche

    de plus, les parties ecrites en orange à l'intérieur du code, c'est à dire, toutes les petites remarque du webmaster que je remercie par la meme occasion, dois je les supprimer ou est ce qu'ils peuvent rester telles qu'elles.

    Sinon, pour le PHP, y'a aucun problème, mon hébergeur l'accepte.

    Merci à toi....

  10. Utilise l'attribut action de la balise <form>:

    Je dois la mettre où dans mon code, je dois t'avouer que je ne suis pas trop familiariser avec le code html et encore moins avec le php

    <form action="ta_page_de_traitement.php" method="post">

    comment je peux faire cette fameuse page, j'ai bien créer la base de donnée avec my SQL mais ensuite, l'utiliser, c une autre paire de manche. Je ne m'en sors pas, j'ai passé tout le week end dessus et j'ai vraiement beaucoup de mal

  11. voila, je travaille dans un golf et je suis actuellement en train de mettre à jour le site web.

    J'aimerai pouvoir créer un formulaire afin que les membres puissent faire des demandes de reservation cependant, j'ai deux petites questions:

    La premiere, lorsque je clique sur valider, je reviens sur la page avec tout les champs qui se sont revidés. Comment puis je rediriger les personnes sur une autre page.

    La seconde, comment puis je enregistrer les données envoyées car pour l'instant, riun ne se passe et je ne vois pas comment faire sous dreamweaver 2004 je présume qu'il faut passer par le php mais je ne m'y connais pas encore tropp, j'ai bien un bouquin mais il ne donne pas vraiement d'aide à ce sujet

    merci, toutes les réponses seront le bienvenue.

    Voila le code de mon formulaire:

    html
    <form action="" method="post" name="Contact" id="Contact">
    <div align="center">
    <table width="710" height="578" border="0" class="test">
    <tr class="Style1">
    <td width="251" height="135"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290"><div align="center"></div></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="111"> </td>
    <td width="143" align="right" valign="top"><p class="Style1">Name</p>
    <p class="Style1">Surname</p>
    <p class="Style1">E-mail</p></td>
    <td width="8"> </td>
    <td width="290" valign="top"><p> <span class="Style1">
    <input name="Nom" type="text" id="Nom" onBlur="MM_validateForm('Nom','','R');return document.MM_returnValue">
    </span></p>
    <p> <span class="Style1">
    <input name="Prénom" type="text" id="Prénom">
    </span></p>
    <p>
    <input name="email" type="text" id="email" onBlur="MM_validateForm('email','','RisEmail');return document.MM_returnValue">
    </p></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="42"> </td>
    <td width="143" align="right">You are </td>
    <td width="8"> </td>
    <td width="290"> <p>
    <label>
    <input name="Member" type="radio" value="bouton radio" checked>
    a Member </label>
    <label>
    <input type="radio" name="Guest" value="bouton radio">
    </label>
    an unaccompanied Guest <br>
    </p>
    </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="26"> </td>
    <td width="143" align="right">You would like to reserve </td>
    <td width="8"> </td>
    <td width="290"><input name="Green Fee" type="checkbox" id="Green Fee" value="checkbox">
    a Green Fee
    <input name="Room" type="checkbox" id="Room" value="checkbox">
    a Room </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="21"> </td>
    <td width="143" align="right">Arrival Date </td>
    <td width="8"> </td>
    <td width="290"><select name="arrival day" id="arrival day">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    </select>
    <select name="Arrival month" id="select">
    <option selected>January</option>
    <option>February</option>
    <option>March</option>
    <option>April</option>
    <option>May</option>
    <option>Juin</option>
    <option>July</option>
    <option>August</option>
    <option>September</option>
    <option>October</option>
    <option>November</option>
    <option>December</option>
    </select>
    <select name="Arrival Year" id="Arrival Year">
    <option selected>2006</option>
    <option>2007</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="29"> </td>
    <td width="143" align="right">Departure Date </td>
    <td width="8"> </td>
    <td width="290"><select name="Departure day" id="Departure day">
    <option selected>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    </select>
    <select name="Departure Month" id="Departure Month">
    <option selected>January</option>
    <option>February</option>
    <option>March</option>
    <option>April</option>
    <option>May</option>
    <option>Juin</option>
    <option>July</option>
    <option>August</option>
    <option>September</option>
    <option>October</option>
    <option>November</option>
    <option>December</option>
    </select>
    <select name="Departure Year" id="Departure Year">
    <option selected>2006</option>
    <option>2007</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="29"> </td>
    <td align="right">Number of Rooms</td>
    <td> </td>
    <td><select name="nbre room" id="nbre room">
    <option selected>0</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="27"> </td>
    <td align="right">Villa / Appartment </td>
    <td> </td>
    <td><select name="Villa" id="Villa">
    <option selected>Choose</option>
    <option>Monte Carlo</option>
    <option>St Tropez</option>
    <option>Cannes</option>
    <option>Ste Maxime</option>
    <option>St Paul</option>
    <option>Pagnol</option>
    <option>Les Arcs Appartment</option>
    <option>Grimaud Appartment</option>
    </select></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="84"> </td>
    <td width="143" align="right" class="Style1">Comments</td>
    <td width="8"> </td>
    <td width="290"><textarea name="Comment" rows="3" class="Style1" id="Comment"></textarea></td>
    </tr>
    <tr class="Style1">
    <td width="251" height="22"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290"> </td>
    </tr>
    <tr class="Style1">
    <td width="251" height="23"> </td>
    <td width="143" align="right"> </td>
    <td width="8"> </td>
    <td width="290">
    <a href="#Remerciementformulaire.html">
    <input name="imageField" type="image" src="Photos/valider.jpg" width="127" height="38" border="0">
    </a></td>
    </tr>
    </table>
    </div>
    </form>

×
×
  • Créer...