Jump to content
xisto Community

beeseven

Members
  • Content Count

    628
  • Joined

  • Last visited

Posts posted by beeseven


  1. You don't need to have two pages for a form. You could just have some HTML then PHP then finish the HTML (pretend the file is called "file.php"):

    <HTML><HEAD><TITLE>Title</TITLE><BODY><FORM METHOD="POST" ACTION="file.php">Name: <INPUT TYPE="text" NAME="name"><INPUT TYPE="submit"></FORM><?phpecho "Hello, " . $_POST['name'];?></BODY></HTML>


  2. I'm pretty sure you can't use Java for scripting, but I'm new to it (started attempting to teach myself through tutorials this week). You can embed Java applets in web pages and do some pretty neat things, though.And if you're going to have a protected part of your site with users and whatnot, PHP is definitely the best. Since it does it's stuff before you load the page (or before you reload, depending on what it's doing), you can't see it in the source. The only way to look at the PHP is if you're on a system with a bunch of users. For example, my school gives us a little bit of webspace with PHP hosted on a UNIX/Linux server and since we can SSH into it, anyone that has the right permissions can go through and look at it in VI. However, I don't think many hosts really do that so PHP is best if you want to have authentication.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.