Probleme de script

Résolu
dekovince Messages postés 41 Date d'inscription mardi 30 janvier 2007 Statut Membre Dernière intervention 9 mai 2007 - 8 févr. 2007 à 09:54
dekovince Messages postés 41 Date d'inscription mardi 30 janvier 2007 Statut Membre Dernière intervention 9 mai 2007 - 8 févr. 2007 à 17:01
bonjour a tous !!!

voila je pense que j ai un probleme au niveau de l "include" :

j arrive pas a appeler plusieur formulaire dans ma page formulaires.php

index.html :

<html>

<!-- Date de création: 07/02/2007 -->
<head>

<title></title>

</head>



<center>
<
a href= "index1.php?type=clubs"> Clubs</
a>

<
a href ="index1.php?type= membres">membres </
a>

</center>


</html>

index1.php :

<?php

/* Date de création: 07/02/2007 */
?>

<html>
<head>

<?php

if
(isset
($_GET
['type'
]))$type
=$_GET
['type'
];

else$type
= ""
;

?>

<?php

if
(isset
($_GET
['type'
]))echo$_GET
['type'
]
;

else
echo$type
=""
;

?>
</head>



<
a href= "formulaires.php?type=
<?php
echo " $type"
;?>&sport =football">
Formulaire foot</a>

<a href= "formulaires.php?type=
<?php
echo " $type"
;?>&sport =rugby">
Formulaire rugby</a>



</html>

formulaires.php :

<?php

/* Date de création: 07/02/2007 */
?>

<html>

<head>

<?php

if(isset
($_GET
['type'
]))$type
= $_GET
[ 'type'
];

else$type
=""
;

if(isset
($_GET
['sport'
]))$sport
= $_GET
[ 'sport'
];

else$sport
=""
;

?>

</head>



<?php
$page
= "form_
$type -$sport.php";

if
($type
! =""
)

{
include
("
$page");

}

else

{

echo"petite erreure, pas dze sport choisi !"
;

}

?>



</html>

form_clubs-football.php :

<?php

/* Date de création: 07/02/2007 */
?>

<html>
<head>

<?php
$type
= ( 'clubs'
)
; $sport
=('football'
)
;$page
= ( 'form_clubs-football.php'
)

?>

<?php

if(isset
($_GET
['type'
]))$type
=$_GET
['type'
];

else$type
= ""
;

if (isset
($_GET
['sport'
]))$sport
=$_GET
['sport'
];

else$sport
= ""
;

?>
</head>



<center>
hello le formulaire clubs foot !!

</center>


</html>

voila en gros lorsque j arrive sur formulaires il me dit :

Warning: include(form_clubs-football.php) [function.include]: failed to open stream: No such file or directory in D:\www\formulaires.php on line 25

Warning: include() [function.include]: Failed opening 'form_clubs-football.php' for inclusion (include_path ='.;C:\php5\pear') in D:\www\formulaires.php on line 25

1 réponse

dekovince Messages postés 41 Date d'inscription mardi 30 janvier 2007 Statut Membre Dernière intervention 9 mai 2007
8 févr. 2007 à 17:01
bon bah j ai trouver c était un truc a la con une histoire de majuscule et minuscules!!!

trop bete !!!!

a+
3
Rejoignez-nous