|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Running PHP from Form
Hi,
I've just installed PHP (Win 98 and Apache webserver) and php-files I run by entering http://localhost/someting.php in my browser run correctly. However when I try to run a php-file from, for example, a form (I'm following a quick course) in a HTML page, it doesn't work. Can somebody help me out with this one? Thanx, Zeeuw |
|
#2
|
|||
|
|||
|
RE: Running PHP from Form
Could you give a specific example of what is not working for you?
|
|
#3
|
|||
|
|||
|
RE: Running PHP from Form
In the following PHP file, the echo text is not displayed!
<html> <head> <title>Test</title> </head> <body> <h1>PHP tester</h1> <? echo "<p>Does it work? "; ?> </body> </html> |
|
#4
|
|||
|
|||
|
RE: Running PHP from Form
It works for me, the tags might not be set up to read short tags <? ?>, try using <?php ?>
you can check the php.ini file to see if: short_open_tag = On if so, then it should work for you. |
|
#5
|
|||
|
|||
|
RE: Running PHP from Form
The file itself works also on my pc when I type localhost/filename.php in the address bar of my browser. However when I call this file from within a Form, it doesn't work, that's the problem.
|
|
#6
|
|||
|
|||
|
RE: Running PHP from Form
|
|
#7
|
|||
|
|||
|
RE: Running PHP from Form
This is the code for the Form, in which test.php is called, however in the file test.php (for code see previous post) the php code doesn't run!
I can see the (HTML) text and in the sourcecode on the loaded page(test.php) the php code can be read, however is not displayed on the loaded page. <html> <head> <title>Test</title> </head> <body> <h1>Test</h1> <form action="test.php" method=post> <table border=0> <tr> <td>Variable input</td> <td align=center><input type="text" name="TVar" size=3 maxlength=3></td> </tr> <tr> <td colspan=2 align=center><input type="submit" value="Submit"></td> </tr> </table> </form> </body> </html> |
|
#8
|
|||
|
|||
|
RE: Running PHP from Form
does the url for the php file show up in the browser with the http path "http://localhost/..." or the local path "C:/..."
|
|
#9
|
|||
|
|||
|
RE: Running PHP from Form
It shows up with c:/.../test.php
|
|
#10
|
|||
|
|||
|
RE: Running PHP from Form
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Running PHP from Form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|