Need help with PHP programming?

Here is the code provided by the teacher. (mrvaughan.com)
<html>
<head></head>
<body>

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<input name="crush" size="30">
<input type="hidden" name="all" value="<?php echo $_POST['crush']."<br>".$_POST['all'] ;?>" size="30">
<input type="submit" name="submit" value="add">
</form>
<?php echo $_POST['crush']."<br>".$_POST['all'];//}
?>
</body>
</html>

What it does is it creates a field to enter your word into and when you click "add" it puts it into a list below. I need to explode the list created into an array, sort it then display it on the screen. teacher said it should be 4 lines added to above code to do this. Please someone try it. I DID NOT CREATE THIS CODE I AM NOT CRAZY :) (WAMP SERVER)

Ok I assume that you are familiar with Mysql because no matte what you have to create a database, that will be your first file. Then you need the file to connect to the data base and that you would call that conect.php or what ever you like. You need your input file input.php where the summited information will be send to the database. Then you need your display.php file where the information will be sorted and sent back to you where ever you like it. Is not a simple copy and past job over all. Visit various sites on the net if you don’t have the PHP bible or any PHP books on how to go about it. GOOD LUCK and have fun. You can have it all in one file but is much neater and more flexible if you have a file for each process you want ot achieve.

3 Responses to “Need help with PHP programming?”

  • REAL HELP says:

    I recommended you that you can get help from
    http://expert.asptutorials.info/
    and let many programmers bid for your project.
    You can hire whoever you like.

    Do not pay any money afront however
    References :

  • wiseornotyoudecide says:

    Ok I assume that you are familiar with Mysql because no matte what you have to create a database, that will be your first file. Then you need the file to connect to the data base and that you would call that conect.php or what ever you like. You need your input file input.php where the summited information will be send to the database. Then you need your display.php file where the information will be sorted and sent back to you where ever you like it. Is not a simple copy and past job over all. Visit various sites on the net if you don’t have the PHP bible or any PHP books on how to go about it. GOOD LUCK and have fun. You can have it all in one file but is much neater and more flexible if you have a file for each process you want ot achieve.
    References :

  • Colanth says:

    Tell him that unless he validates PHP_SELF, that code is a *HUGE* security hole.

    Also, there’s no list (that would be <li> tags).

    Run it on your server and play with it – that’s how you learn. I’m sure you’ve already been through enough php to be able to do it.
    References :

Leave a Reply