external php include problems.. :o(
Posted: Mon 2. Feb 2004, 18:58
hello everybody i have a trouble with {PHP:add_revendeur.php}
in this page http://www.logimmo.com/corporate/index. ... 71,0,0,1,0
you can found the add_revendeur.php here :
http://www.logimmo.com/corporate/add_revendeur.php
As you can see code run here but not include the cms...
I post a part of the code here... And sure need some help ;o)
<form action="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'] ?>" method="post" enctype="multipart/form-data">
<table width="100%" cellpadding="2" cellspacing="0">
<? if ($error)
{
?>
<tr>
<td><br>
<blockquote><? echo $error; ?></blockquote>
</td>
</tr>
<?
}
?>
<tr>
<td>Denomination </td>
<td><input type="text" size="40" name="denomination" value="<? echo stripslashes($denomination); ?>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Adresse</td>
<td><input type="text" size="40" name="adresse" value="<? echo stripslashes($adresse); ?>"></td>
</tr><tr>
<td>Code postal</td>
<td><input type="text" size="8" name="codepostal" value="<? echo stripslashes($codepostal); ?>">
Ville
<input type="text" size="23" name="ville" value="<? echo stripslashes($ville); ?>"></td>
</tr>
<tr>
<td>Pays</td>
<td>
<select name="pays">
<option value="F"<? if ($pays=="F") echo " selected"; ?>>France</option>
<option value="L"<? if ($pays=="L") echo " selected"; ?>>Luxembourg</option>
<option value="D"<? if ($pays=="D") echo " selected"; ?>>Allemagne</option>
<option value="B"<? if ($pays=="B") echo " selected"; ?>>Belgique</option>
<option value="E"<? if ($pays=="E") echo " selected"; ?>>Espagne</option>
<option value="P"<? if ($pays=="P") echo " selected"; ?>>Portugal</option>
<option value="I"<? if ($pays=="I") echo " selected"; ?>>Italie</option>
</select>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Contact</td>
<td><input type="text" size="40" name="contact" value="<? echo stripslashes($contact); ?>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" size="40" name="email" value="<? echo stripslashes($email); ?>"></td>
</tr><tr><td>Site web</td>
<td><input type="text" size="40" name="url" value="<? echo stripslashes($url); ?>"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Telephone</td>
<td><input type="text" size="20" name="tel" value="<? echo stripslashes($tel); ?>" maxlength="20"></td>
</tr>
<tr>
<td>Fax</td>
<td><input type="text" size="20" name="fax" value="<? echo stripslashes($fax); ?>" maxlength="20"></td>
</tr>
<tr>
<td> </td>
</tr>
<td>Login</td>
<td><input type="text" name="log" value="<? echo stripslashes($log); ?>"></td>
</tr>
<tr>
<td>Mot de passe</td>
<td><input type="text" name="pass" value="<? echo stripslashes($pass); ?>"></td>
<td colspan="2"> </td>
</tr>
<tr>
<td></td><td>
<input type="hidden" name="type" value="REV">
<input type="hidden" name="menu" value="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'] ?>">
<input type="submit" name="modvalid" value="Devenir revendeur">
</td>
<td> </td>
</tr>
</table>
<?
print("</form>");
?>
in this page http://www.logimmo.com/corporate/index. ... 71,0,0,1,0
you can found the add_revendeur.php here :
http://www.logimmo.com/corporate/add_revendeur.php
As you can see code run here but not include the cms...
I post a part of the code here... And sure need some help ;o)
<form action="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'] ?>" method="post" enctype="multipart/form-data">
<table width="100%" cellpadding="2" cellspacing="0">
<? if ($error)
{
?>
<tr>
<td><br>
<blockquote><? echo $error; ?></blockquote>
</td>
</tr>
<?
}
?>
<tr>
<td>Denomination </td>
<td><input type="text" size="40" name="denomination" value="<? echo stripslashes($denomination); ?>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Adresse</td>
<td><input type="text" size="40" name="adresse" value="<? echo stripslashes($adresse); ?>"></td>
</tr><tr>
<td>Code postal</td>
<td><input type="text" size="8" name="codepostal" value="<? echo stripslashes($codepostal); ?>">
Ville
<input type="text" size="23" name="ville" value="<? echo stripslashes($ville); ?>"></td>
</tr>
<tr>
<td>Pays</td>
<td>
<select name="pays">
<option value="F"<? if ($pays=="F") echo " selected"; ?>>France</option>
<option value="L"<? if ($pays=="L") echo " selected"; ?>>Luxembourg</option>
<option value="D"<? if ($pays=="D") echo " selected"; ?>>Allemagne</option>
<option value="B"<? if ($pays=="B") echo " selected"; ?>>Belgique</option>
<option value="E"<? if ($pays=="E") echo " selected"; ?>>Espagne</option>
<option value="P"<? if ($pays=="P") echo " selected"; ?>>Portugal</option>
<option value="I"<? if ($pays=="I") echo " selected"; ?>>Italie</option>
</select>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Contact</td>
<td><input type="text" size="40" name="contact" value="<? echo stripslashes($contact); ?>"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" size="40" name="email" value="<? echo stripslashes($email); ?>"></td>
</tr><tr><td>Site web</td>
<td><input type="text" size="40" name="url" value="<? echo stripslashes($url); ?>"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Telephone</td>
<td><input type="text" size="20" name="tel" value="<? echo stripslashes($tel); ?>" maxlength="20"></td>
</tr>
<tr>
<td>Fax</td>
<td><input type="text" size="20" name="fax" value="<? echo stripslashes($fax); ?>" maxlength="20"></td>
</tr>
<tr>
<td> </td>
</tr>
<td>Login</td>
<td><input type="text" name="log" value="<? echo stripslashes($log); ?>"></td>
</tr>
<tr>
<td>Mot de passe</td>
<td><input type="text" name="pass" value="<? echo stripslashes($pass); ?>"></td>
<td colspan="2"> </td>
</tr>
<tr>
<td></td><td>
<input type="hidden" name="type" value="REV">
<input type="hidden" name="menu" value="<?php echo $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'] ?>">
<input type="submit" name="modvalid" value="Devenir revendeur">
</td>
<td> </td>
</tr>
</table>
<?
print("</form>");
?>