A voir également:
- Redimensioner une fenetre php
- Easy php - Télécharger - Divers Web & Internet
- Raccourci agrandir fenetre - Guide
- Fenêtre hors écran windows 11 - Guide
- Fenêtre - Guide
- Fenetre privée - Guide
2 réponses
est ce que le .php fais l'analyse et envoie l'email puis te fais la redirection vers une page de remerciement ou bien le .php est indépendant et tu veux l'ovrire sur popup !?
enfait j'ai trouvé comment le faire avec du java script mon problème maintenant c'est que je veux que le pop up ou se trouve le fichier php se ferme apres X secondes et je sais pa comment faire je vous envoi le code :
<head>
<script language="javascript" type="text/javascript">
function popup_confirm(the_form) {
my_form = eval(the_form)
window.open("./send1.php", "popup", "height=300,width=500,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
my_form.target = "popup";
my_form.submit();
}
</script>
<LINK REL="SHORTCUT ICON" href="favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contact</title>
<style type="text/css">
<!--
body {
background-color: #252525;
background-image: url();
}
.Style2 { font-family: "Eras Demi ITC";
color: #666666;
font-size: 12px;
}
.Style5 { color: #999999;
font-size: 11px;
}
.Style7 {font-family: "Eras Demi ITC"; font-size: 15px; color: #999999; }
.Style8 {font-family: "Eras Demi ITC"; font-size: 15px; color: #333333; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('imgsite/acceuil1.png','imgsite/hdesign1.png','imgsite/portfolio1.png','imgsite/contact.png')">
<table width="1200" border="0" align="center">
<tr>
<td width="315" rowspan="2" valign="top"> </td>
<td width="556" height="68" valign="top"> </td>
<td width="315" rowspan="2" valign="top"> </td>
</tr>
<tr>
<td height="485" valign="top"><table width="100%" border="0">
<tr>
<td width="5%"> </td>
<td width="91%" background="texturehaut.jpg"><table width="100%" border="0">
<tr>
<td width="16%" height="21"><a href="accueil.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('acceuil','','imgsite/acceuil1.png',1)"><img src="imgsite/acceuil.png" alt="acceuil" name="acceuil" width="76" height="25" border="0" id="acceuil" /></a></td>
<td width="17%"><a href="h-design.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('h-design','','imgsite/hdesign1.png',1)"><img src="imgsite/hdesign.png" alt="hdesign" name="h-design" width="76" height="25" border="0" id="h-design" /></a></td>
<td width="16%"><a href="portfolio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('portfolio','','imgsite/portfolio1.png',1)"><img src="imgsite/portfolio.png" alt="portfolio" name="portfolio" width="76" height="25" border="0" id="portfolio" /></a></td>
<td width="35%"> </td>
<td width="16%"><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','imgsite/contact.png',1)"><img src="imgsite/contact1.png" alt="contact" name="contact" width="76" height="25" border="0" id="contact" /></a></td>
</tr>
</table></td>
<td width="4%"> </td>
</tr>
</table>
<table width="550" border="0">
<tr>
<td width="556" valign="top"><table width="100%" border="0" bordercolor="#0A0A0A">
<tr>
<td align="left" valign="top"><img src="imgsite/pagecontact.jpg" width="550" height="229" />
<table width="100%" border="1" bordercolor="#333333">
<tr>
<td valign="top"><form action="send1.php" method="post" name="form1" id="form1">
<table width="100%" border="0" cellspacing="4">
<tr>
<td width="16%"><span class="Style7">Nom :</span></td>
<td colspan="2"><label>
<input name="nom" type="text" class="Style8" id="nom" />
</label></td>
</tr>
<tr>
<td class="Style7">E-mail :</td>
<td colspan="2"><label>
<input name="email" type="text" class="Style8" id="email" />
</label></td>
</tr>
<tr>
<td class="Style7">adresse :</td>
<td colspan="2"><label>
<input name="adresse" type="text" class="Style8" id="adresse" />
</label></td>
</tr>
<tr>
<td class="Style7">Message :</td>
<td colspan="2"><label>
<textarea name="message" cols="45" rows="5" class="Style8" id="message"></textarea>
</label></td>
</tr>
<tr>
<td> </td>
<td width="47%"><label></label></td>
<td width="37%"><input name="envoyer" type="submit" class="Style8" id="envoyer" value="Envoyer" onclick="popup_confirm(form1);" /></td>
</tr>
</table>
</form>
<head>
<script language="javascript" type="text/javascript">
function popup_confirm(the_form) {
my_form = eval(the_form)
window.open("./send1.php", "popup", "height=300,width=500,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
my_form.target = "popup";
my_form.submit();
}
</script>
<LINK REL="SHORTCUT ICON" href="favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>contact</title>
<style type="text/css">
<!--
body {
background-color: #252525;
background-image: url();
}
.Style2 { font-family: "Eras Demi ITC";
color: #666666;
font-size: 12px;
}
.Style5 { color: #999999;
font-size: 11px;
}
.Style7 {font-family: "Eras Demi ITC"; font-size: 15px; color: #999999; }
.Style8 {font-family: "Eras Demi ITC"; font-size: 15px; color: #333333; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('imgsite/acceuil1.png','imgsite/hdesign1.png','imgsite/portfolio1.png','imgsite/contact.png')">
<table width="1200" border="0" align="center">
<tr>
<td width="315" rowspan="2" valign="top"> </td>
<td width="556" height="68" valign="top"> </td>
<td width="315" rowspan="2" valign="top"> </td>
</tr>
<tr>
<td height="485" valign="top"><table width="100%" border="0">
<tr>
<td width="5%"> </td>
<td width="91%" background="texturehaut.jpg"><table width="100%" border="0">
<tr>
<td width="16%" height="21"><a href="accueil.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('acceuil','','imgsite/acceuil1.png',1)"><img src="imgsite/acceuil.png" alt="acceuil" name="acceuil" width="76" height="25" border="0" id="acceuil" /></a></td>
<td width="17%"><a href="h-design.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('h-design','','imgsite/hdesign1.png',1)"><img src="imgsite/hdesign.png" alt="hdesign" name="h-design" width="76" height="25" border="0" id="h-design" /></a></td>
<td width="16%"><a href="portfolio.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('portfolio','','imgsite/portfolio1.png',1)"><img src="imgsite/portfolio.png" alt="portfolio" name="portfolio" width="76" height="25" border="0" id="portfolio" /></a></td>
<td width="35%"> </td>
<td width="16%"><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','imgsite/contact.png',1)"><img src="imgsite/contact1.png" alt="contact" name="contact" width="76" height="25" border="0" id="contact" /></a></td>
</tr>
</table></td>
<td width="4%"> </td>
</tr>
</table>
<table width="550" border="0">
<tr>
<td width="556" valign="top"><table width="100%" border="0" bordercolor="#0A0A0A">
<tr>
<td align="left" valign="top"><img src="imgsite/pagecontact.jpg" width="550" height="229" />
<table width="100%" border="1" bordercolor="#333333">
<tr>
<td valign="top"><form action="send1.php" method="post" name="form1" id="form1">
<table width="100%" border="0" cellspacing="4">
<tr>
<td width="16%"><span class="Style7">Nom :</span></td>
<td colspan="2"><label>
<input name="nom" type="text" class="Style8" id="nom" />
</label></td>
</tr>
<tr>
<td class="Style7">E-mail :</td>
<td colspan="2"><label>
<input name="email" type="text" class="Style8" id="email" />
</label></td>
</tr>
<tr>
<td class="Style7">adresse :</td>
<td colspan="2"><label>
<input name="adresse" type="text" class="Style8" id="adresse" />
</label></td>
</tr>
<tr>
<td class="Style7">Message :</td>
<td colspan="2"><label>
<textarea name="message" cols="45" rows="5" class="Style8" id="message"></textarea>
</label></td>
</tr>
<tr>
<td> </td>
<td width="47%"><label></label></td>
<td width="37%"><input name="envoyer" type="submit" class="Style8" id="envoyer" value="Envoyer" onclick="popup_confirm(form1);" /></td>
</tr>
</table>
</form>