| ||||||||
Petit astucien | Bonjour, j'aimerai réer un formulaire sur mon site!
Pour valider une inscription, il faut aller sur le lien:
http://www.monsite.fr/Confirmation.php?login=PSEUDO&confirm=LACLÉEDECONFIRMATION
Et j'aimerai faire une page qui s'appelle Confirmation2.php
Avec ceux formulaire:
<html>
<head>
<title>The-PaBLo</title>
<style>
BODY{
scrollbar-face-color:#FFFFFF;
scrollbar-arrow-color:#1D548A;
scrollbar-track-color:#FFFFFF;
scrollbar-shadow-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-3dlight-color:#FFFFFF;
scrollbar-darkshadow-Color:#FFFFFF;
}
</style>
<meta name="generator" content="Namo WebEditor"></head>
<body bgcolor="white" text="#1D548A" link="#1D548A" vlink="#1D548A" alink="#1D548A">
<p align="center"><span style="font-size:9pt;"><b><u><font face="Verdana" color="#1D548A">Confirmation de ton inscription</font></u></b></span></p>
<table cellpadding="1" cellspacing="1" style="border-width:2; border-color:rgb(0,153,0); border-style:solid;" width="389" align="center">
<tr>
<td width="55" align="center" valign="top"> </td>
<td width="330" align="left" valign="top">
<p><b><span style="font-size:8pt;"><font face="Verdana" color="#009900">Si tu veux activer ton compte manuellement, remplis le formulaire ci-dessou:</font></span></b></p>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<p align="right"><span style="font-size:8pt;"><b><font face="Verdana">Ton pseudo: </font></b></span></p>
</td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="text" name="login" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;" size="31"></font></span></p>
</td>
</tr>
<tr>
<td>
<p align="right"><span style="font-size:8pt;"><b><font face="Verdana">Ton code: </font></b></span></p>
</td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="password" name="confirm" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;" size="31"></font></span></p>
</td>
</tr>
<tr>
<td> </td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="submit" name="Submit" value="Valider" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;">
</font></span></p>
</td>
</tr>
</table>
<p align="left"><span style="font-size:8pt;"><b><font face="Verdana" color="#009900">Clique </font><font face="Verdana" color="#009900">ici</font></b></span></p>
</td>
</tr>
</table>
</body>
</html>
Donc j'aimerai que quand on clic sur valider, et bien que ça m'ammène sur ceux lien: http://www.monsite.fr/Confirmation.php?login=ON PREND CE QU'IL Y AVAIT DANS LE CHAMP&confirm=ON PREND CE QU'IL Y AVAIT DANS LE CHAMP
C'est tout ce que je veux savoir!
Merci beaucoupModifié par The-PaBLo le 07/10/2006 11:33 | |||||||
Publicité | ||||||||
![]() ![]() | si tu fais ça en PHP, c'est $_GET['variable'] que tu dois utiliser.
$_GET['login'] et $_GET['confirm'] pour toi. | |||||||
Petit astucien | Ça ne marche toujours pas! Voici le code de ma page que j'ai fait:
<html>
<head>
<title>ThePaBLo</title>
<style>
BODY{
scrollbar-face-color:#FFFFFF;
scrollbar-arrow-color:#1D548A;
scrollbar-track-color:#FFFFFF;
scrollbar-shadow-color:#FFFFFF;
scrollbar-highlight-color:#FFFFFF;
scrollbar-3dlight-color:#FFFFFF;
scrollbar-darkshadow-Color:#FFFFFF;
}
</style>
<meta name="generator" content="Namo WebEditor"></head>
<body bgcolor="white" text="#1D548A" link="#1D548A" vlink="#1D548A" alink="#1D548A">
<p align="center"><span style="font-size:9pt;"><b><u><font face="Verdana" color="#1D548A">Confirmation de ton inscription</font></u></b></span></p>
<table cellpadding="1" cellspacing="1" style="border-width:2; border-color:rgb(0,153,0); border-style:solid;" width="389" align="center">
<tr>
<td width="55" align="center" valign="top"> </td>
<td width="330" align="left" valign="top">
<p><b><span style="font-size:8pt;"><font face="Verdana" color="#009900">Si tu veux activer ton compte manuellement, remplis le formulaire ci-dessou:</font></span></b></p>
<form name="Confirmation" method="post" action="http://www.monsite.fr/Confirmation.php?login=$_GET['login']&confirm=$_GET['confirm']">
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<p align="right"><span style="font-size:8pt;"><b><font face="Verdana">Ton pseudo: </font></b></span></p>
</td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="text" name="login" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;" size="31"></font></span></p>
</td>
</tr>
<tr>
<td>
<p align="right"><span style="font-size:8pt;"><b><font face="Verdana">Ton code: </font></b></span></p>
</td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="text" name="confirm" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;" size="31"></font></span></p>
</td>
</tr>
<tr>
<td> </td>
<td>
<p><span style="font-size:8pt;"><font face="Verdana"><input type="submit" name="Submit" value="Valider" style="font-family:Verdana; font-weight:normal; font-size:9px; color:rgb(53,122,161); background-color:rgb(152,202,213); border-width:1; border-color:rgb(13,68,125); border-style:solid;">
</font></span></p>
</td>
</tr>
</table></form>
<p align="left"><span style="font-size:8pt;"><b><font face="Verdana" color="#009900">Clique </font><font face="Verdana" color="#009900">ici</font></b></span></p>
</td>
</tr>
</table>
</body>
</html>
Car en faite, je veux que avec le formulaire, le login et le confirm il se plasse sur l'adresse! En faite je crois que c'est une redirection non?
Merci beaucoup de ton aideModifié par The-PaBLo le 07/10/2006 11:33 | |||||||
![]() ![]() | non, non, $_GET et $_POST sont des traitements PHP ...
tu dois les mettre entre balises PHP.
<form name="Confirmation" method="post" action="http://www.monsite.fr/Confirmation.php?login=<?php echo $_GET['login']; ?>&confirm=<?php echo $_GET['confirm']; ?>">
là ça marchera mieux. | |||||||
Petit astucien | ça marche toujours pas! Quand je met envoyé, ça me met sur cette page:
http://www.monsite.fr/Confirmation.php?login=&confirm=
ça me met pas ce que la personne a remplis! Comment faire?
Comment est-ce qu'on fait une redirection? | |||||||
Petit astucien | Personne ne sais comment je peux faire?
Merci | |||||||
![]() ![]() | attends, c'est pour un traitement de formulaire ou un affichage ? | |||||||
Nouvel astucien | The-PaBLo a écrit :
Salut,
Pour transmettre des variables par l'url, il faut utiliser la méthode GET or dans ton formulaire tu utilises la methode POST.
Personne ne sais comment je peux faire? Merci <form name="Confirmation" method="post" action="http://www.monsite.fr/Confirmation.php?login=$_GET['login']&confirm=$_GET['confirm']">
tapes juste:
<form name="Confirmation" method="GET" action="http://www.monsite.fr/Confirmation.php">
Essais ca, et jète un oeil à l'url après avoir cliqué sur 'ok' tu verras ca fonctionne.
[code]<form action="#" method="get" target="_blank">
Login<input type="text" name="pseudo" size="30" maxlength="256"><br>
Pass <input type="text" name="pass" size="30" maxlength="256">
<input type="submit" value="ok">
</form>[/code]
OlivModifié par Anonyme le 06/10/2006 19:58 | |||||||
Petit astucien | Je vais essayer, je te tiens au courant | |||||||
Publicité | ||||||||
Petit astucien | C'est bon, ça marche! Franchement j'te remerci beaucoup!
Est-ce que tu peux m'accpter dans ton MSN?
Merci beaucoup Oliver | |||||||
|
Les bons plans du moment PC Astuces | Tous les Bons Plans | |||||||||||||||
|