Re: Rendered code disappear?!



..oO(Jack)

I have installed IIS 5.1 and php 5
1.php
<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

</body>
</html>



welcome.php
<html>
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!
</body>
</html>


Any thoughts? I did succeed in one try run....
But it is messed up now

No obvious errors in the code (except for the missing document type
declaration in the HTML, but this won't cause the PHP to fail).

Is the PHP executed at all? Check the source code of the second page in
your browser - do you still see unparsed PHP code there?

Then check these settings in your php.ini:

error_reporting = E_ALL|E_STRICT
display_errors = 1

Do you get any error message on either of the test pages?

Micha
.



Relevant Pages

  • Javascript alert question
    ... I've been trying, with limited success, to produce a javascript alert box which shows the user a validation error message. ... The html that generates the form is wrapped inside a php function. ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... > then sub the whole of that generated markup into the template? ... layed out on the fly, a simple IMG tag, or even an entire HTML document. ... PHP scripting provides 10 times the features of both of these ... idea as tokens can eliminate a huge amount of maintance, ...
    (comp.databases.pick)
  • Re: query string passing woes........ help... please....
    ... |> | offer any help other than saying that my validation could be FAR more ... I'm a total newbie at php. ... The easiest way for you would be to make the html form called form.php ... $_SESSION array using the same names. ...
    (alt.php)
  • Re: HELP - Cant change Include Path
    ... Here is my php.ini path for the php.ini in both php and sql dirs: ... which did work on the remote linux server and sent me some mail ... Although my gmail acct picked the mail up as ... an attachment instead of as html - but gmail is really wierd about ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... server-side-scripted html. ... This is a simple example with very little php scripting. ... means that the version of the php pre-processor on your web server must ... >>> The browser never sees anything not sent to it by the script. ...
    (comp.databases.pick)