Jump to content

MySQL & PHP & HTML Forms


kataras

Recommended Posts

hey.. i am new at this forum , i saw it.. it is really good...  :P very good job , nC all of you peoples.... now i have one problem.. i am newbie at PHP ( i start to 'learn' today :P)

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... :P thanks you all for reading:)

 

PS. SRY FOR MY BAD ENGLISH.-

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.