Jump to content

Darkwaldo

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Darkwaldo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Alright. That worked, thanks, but now php isn't. Here is my current code <html> <head> <title></title> </head> <body> <?php echo "hello" . $_POST['name']; ?> <pre> DEBUG : <?php print_r($_POST); ?> </pre> </body> </html> When I open the html form, fill it out and hit submit, the above file opens, but the only thing that appears on the screen is "DEBUG".
  2. One other thing. I am using xampp for my operating environment.
  3. I've recently began learning how to use php and I have ran into a problem when trying to use forms. When I open the page with the form, enter the data, and press the submit button I get the following error. Firefox can't find the file at /C:/xampp/htdocs/”formpro.php”?”Name”=afddsf&SUBMIT=Submit. I'm not sure why this is occurring; both of the files are in the same folder, and php is working fine with other files and both files I am using for the form work fine separately. Why is this occurring? Heres my code: form1.html <html> <head> <title>Say My Name</title> <style type=”text/css”> TD{color:#353535;font-family:verdana} TH{color:#FFFFFF;font-family:verdana;background-color:#336699} </style> </head> <body> <form action=”formpro.php” method=”post”> <table border=”0” cellspacing=”1” cellpadding=”3” bgcolor=”#353535” align=”center”> <tr> <td bgcolor=”#FFFFFF” width=”50%”>Name</td> <td bgcolor=”#FFFFFF” width=”50%”> <input type=”text” name=”Name”><br> </td> </tr> <tr> <td bgcolor=”#FFFFFF” colspan=”2” align=”center”> <input type="submit" value="Submit" name="SUBMIT" class="submit"/> </td> </tr> </table> </form> </body> </html> formpro.php <html> <head> <title>Say My Name</title> </head> <body> <?php echo “Hello “ . $_POST[‘Name’]; ?> <pre> DEBUG : <?php print_r($_POST); ?> </pre> </body> </html>
  4. It worked! As always, thank you for your help, wildteen.
  5. I'm afraid I don't know how. I haven't created a database yet, and the book I am using to get the operating environment up and running does not say anything about creating a data base for phpmyadmin to work correctly.
  6. When I access phpMyAdmin, I get an "invalid server index" error at the bottom of the screen where I believe the mySQL information should be. Does anyone know what is causing this problem?
  7. These characters is what is probably causing the error. You are correct. Thank you for your help.
  8. When I attempt to load phpMyAdmin, the following message is displayed: Does anyone know what is causing this problem, and what I need to do to fix it? OS: Windows xp PHP v. 5.2.4 PHPmyAdmin v. 2.11.1.2 MySQL v. 5.0.45 Apache v.2.0.59
  9. One other thing, after contacting my ISPs tech support, I found out that my ISP does not allow webhosting from my computer. Will that prevent me from setting up a test environment?
  10. I'm currently using Apache 2.0.59, so i don't think that is the problem. Do you have any other ideas?
  11. Is this what you are talking about? LoadModule php5_module c:/php5/php5apache2.dll This is the only line of code the instructions stated I should alter, as far as modules are concerned.
  12. Thank you for your reply. I did restart my computer; however, I am not sure how apache was configured. How do I find out?
  13. I am trying to create an apache, PHP, and MySQL operating environment on my computer; however, I am having trouble loading the PHP test page. When I try to access http://localhost/ I am prompted to download "application/x-httpd-php". I know this line of code was edited when I attempted to install PHP, but I do not know what is causing my browser to act that way. Just so you know, I included the .php extension at the end of the application/x-httpd-php when I edited the code. Does anyone know what is causing this to happen? If my ISP doesn't currently allow me to host a website from my own computer, will that prevent me from testing PHP on my computer?
×
×
  • 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.