gregorykoenig
09-16-2008, 04:39 PM
Hello to all, the dreaded newbie is here
I am having a problem invoking my php page from my html page. What I have in my html code is this block:
<form action="http://192.168.0.10/~Greg/homework2/homework2.php" mehtod="POST">
<textarea rows="10" cols="30" name="input"></textarea>
<br />
<input type="submit" value="Translate...">
</form>
when i submit my info, it is not giving me a new page. Here is the php code.
<?php
echo "<html>\n
<head>\n
<title>Translation, first reading frame</title>
</head>\n" ;
echo "<body>" ;
echo "<h1><b>Amino acid translation, frame 1</h1>" ;
?>
Note: Ignore the contents, this is the beginnings of an assignment
When the new page comes up, it is only showing the code for php; not rendering the appropriate html page. I am not sure what is the issue. I have php installed on my mac and my server is working.
Any help would be great.
I am having a problem invoking my php page from my html page. What I have in my html code is this block:
<form action="http://192.168.0.10/~Greg/homework2/homework2.php" mehtod="POST">
<textarea rows="10" cols="30" name="input"></textarea>
<br />
<input type="submit" value="Translate...">
</form>
when i submit my info, it is not giving me a new page. Here is the php code.
<?php
echo "<html>\n
<head>\n
<title>Translation, first reading frame</title>
</head>\n" ;
echo "<body>" ;
echo "<h1><b>Amino acid translation, frame 1</h1>" ;
?>
Note: Ignore the contents, this is the beginnings of an assignment
When the new page comes up, it is only showing the code for php; not rendering the appropriate html page. I am not sure what is the issue. I have php installed on my mac and my server is working.
Any help would be great.