i need BIG help!!!http://forums.asp.net/t/306678.aspx/1?i+need+BIG+help+Tue, 12 Aug 2003 11:58:53 -0400306678306678http://forums.asp.net/p/306678/306678.aspx/1?i+need+BIG+help+i need BIG help!!! Hello everybody, im doing an internship for a small computering company.. i developped a PHP application to localize the archives of the company and do some reserches : each user can log with his login and password, then he can see a main page that contains : research of archives, delete, change archives informations and finally change profil.. all users can do research of archives, but just some of them (administrators ) can do the delete and change operations... (in the users data base there's a field : 0 or 1 that shows if the current user is or not admin).. anyway, the company choose finally ASP .net beacause it's more secure and more efficient.. now i have to redevelop the application in ASP . NET ... and i really dont know this language .. if someone can send to me or show me two or three pages : login page and then a main page with all the operations that i've talked about... i'm using SQL server 2000, and i have two tables : Users : login, password, email, admin (0 or 1), fullname Archives : archivenumber, suppliername, country, ...etc the research of archives consist of including all the field and doing the research by implementing the necessary informations there... if the user don't put any information the application would give him all the archives stored on the database.. thank you for ur help 2003-08-12T09:51:42-04:00306736http://forums.asp.net/p/306678/306736.aspx/1?Re+i+need+BIG+help+Re: i need BIG help!!! there's the code of my default web page : <pre class="prettyprint">if (!isset($_SESSION[&quot;SID&quot;]) || (!isset($_SESSION[&quot;nom&quot;]))) { $SID = session_id(); session_name($SID); $ref = $REMOTE_ADDR; // HTTP_REFERER session_register(&quot;ref&quot;); session_register(&quot;SID&quot;); ?&gt; print(&quot; &lt;!-- @import url(\&quot;fstyle.css\&quot;); --&gt; &lt;form name=\&quot;form1\&quot; method=\&quot;post\&quot; action=\&quot;main.php?id=$SID\&quot;&gt; <b>Sign In</b> <b>Authentification</b> <b>Login</b> &lt;input name=\&quot;login\&quot; type=\&quot;text\&quot; size=\&quot;25\&quot;&gt; <p><b>Password</b></p> &lt;input name=\&quot;pass\&quot; type=\&quot;password\&quot; size=\&quot;25\&quot;&gt; <p></p> <p></p> &lt;input type=\&quot;submit\&quot; name=\&quot;Submit\&quot; value=\&quot;Sign In\&quot;&gt; <p></p> <p><b><u>Instructions:</u></b></p> Si vous n'ĂȘtes pas encore inscrit, contactez l'administrateur qui vous fournira un login et un mot de passe pour l'authentification. <p></p> <p>Sign</p> In Trouble? <p></p> &lt;/form&gt;&quot;); } elseif(isset($_SESSION[&quot;gender&quot;])) //&amp;&amp;isset($user)) { /*$info = explode(&quot;&amp;&quot;,$user); echo&quot;&quot;.$info[1].&quot; ok ok&quot;; $SID = $info[0]; $nom = $info[2]; $gender = $info[3];*/ print(&quot;&quot;); } ?&gt;</pre> and then the menuuser.php code <pre class="prettyprint"> <html> <head> <title>Menu Principal</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <? if(!isset(&#36;SID)){ &#36;SID = &#36;id;} print("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#000000\"> <tr valign=\"top\"> <td> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=\"#CCCCCC\"> <tr bgcolor=\"#000000\"><td width=\"20%\" valign=\"top\"><font color=\"#CCCCCC\" size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif\"><b>Bonjour &#36;g &#36;n </b></font></td> </tr> <tr valign=\"top\"> <td width=\"20%\"><p><b><font size=\"2\" face=\"verdana\">Que voulez-vous faire?</font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"recherche.php3?id=&#36;SID\">Rechercher une archive</a></font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"ajout.php3?id=&#36;SID\">Ajouter une archive</a></font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"modif.php3?id=&#36;SID\">Modifier une archive</a></font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"suppr.php3?id=&#36;SID\">Supprimer une archive</a></font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"profil.php?id=&#36;SID\">Modifier mon profil</a></font></b></p> <p><b><font size=\"2\" face=\"verdana\"><a href=\"deconnect.php\">D&eacute;connexion</a></font></b></p> <p>&nbsp; </p> <p>&nbsp; </p> <p>&nbsp; </p></td> </tr> </table></td> </tr> </table>"); ?> <body> </body> </html> </pre> 2003-08-12T11:58:53-04:00