kataras Posted December 3, 2008 Share Posted December 3, 2008 hey.. i am new at this forum , i saw it.. it is really good... very good job , nC all of you peoples.... now i have one problem.. i am newbie at PHP ( i start to 'learn' today ) look something : ... {Login.php , the html Form } : <html> <body> <form id="form1" name="form1" method="post" action="Config.php"> <p> <label><strong>Username</strong></label> <input name="DP_USER" type="text" id="DP_USER" value="root" /> //default root</p> <p> <label><strong>Password</strong> <input name="DP_PASS" type="text" id="DP_PASS" value="root" /> </label> //default root</p> <p> <strong>IP</strong> <input name="DP_LOCALHOST" type="text" id="DP_LOCALHOST" value="localhost" /> //default localhost </p> <p><strong>Database </strong> <input name="DP" type="text" id="DP" value="L2JCTeam" /> //default L2JCTeam</p> <blockquote> <blockquote> <p> </p> <blockquote> <blockquote> <p> <label> <input type="submit" name="submit" id="submit" value="Login" /> </label> </p> </blockquote> </blockquote> <p></p> <p> <label><strong></strong></label> </p> </blockquote> </blockquote> <p> </p> </form> </body> </html> the Index.php... <?php include ("Login.php"); ?> the Config.php .... <?php $DP_USER= $_POST["$DP_USER"]; $DP_PASS= $_POST["$DP_PASS"]; $DP_LOCAL = $_POST["$DP_LOCALHOST"]; $DP = $_POST["$DP"]; ?> the Online.php ... <html> <body> <form id="form1" name="form1" method="POST" action=""> <label>Characters On: <textarea name="char_name" id="char_name" cols="45" rows="5"></textarea> </label> </form> </body> </html> so.. ..first of all i want to learn how can i change the TextArea at the 2nd form ( Online.php) , example at Config.php : <?php $DP_USER= $_POST["$DP_USER"]; $DP_PASS= $_POST["$DP_PASS"]; $DP_LOCAL = $_POST["$DP_LOCALHOST"]; $DP = $_POST["$DP"]; $getText = $_POST["$char_name"]; if ($DP_USER = "root") { $getText = " testing at text to write... just an example" include ("Online.php"); echo $getText; ?> it is my first day... that i can make .. I know the connect dp and select dp.. but i want to start from forms for a few... just this... tell me ideas... how can i make it....? i am w8ing... thanks you all for reading:) PS. SRY FOR MY BAD ENGLISH.- Quote Link to comment https://forums.phpfreaks.com/topic/135423-mysql-php-html-forms/ Share on other sites More sharing options...
Maq Posted December 3, 2008 Share Posted December 3, 2008 so.. ..first of all i want to learn how can i change the TextArea at the 2nd form ( Online.php) , example at Config.php : 1) Have no clue what you're asking. What do you mean change? You should be more detailed. 2) This has nothing to do with regex. Move this thread to the PHP Help thread. Quote Link to comment https://forums.phpfreaks.com/topic/135423-mysql-php-html-forms/#findComment-705402 Share on other sites More sharing options...
kataras Posted December 3, 2008 Author Share Posted December 3, 2008 hmhm i though that i was at PHP Help..... l00k i just only to change the text , with PHP , to take the control from html's forms (ex: textAreas... Names..labels..) i know this has no sense.. but i want to learn how , to make and search other things... i just gave an example... i am working at L2J Developing..( if u know Lineage2... ) and know i want to work a little with DP... and PHP &Mysql... sry if i have it at whrong ... i don't know where can i post it. Quote Link to comment https://forums.phpfreaks.com/topic/135423-mysql-php-html-forms/#findComment-705406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.