something tell me you have a header() command in
output.html.php
If so, you can't do it like this. header must be placed before any output (html, echo, print, error msg, html whitespace, var_dump, print_r ...).
diafol
Keep Smiling
10,666 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,514
Skill Endorsements: 57
if (isset($_GET['addjoke']))
{
echo '<form action="?" method="post">
<div>
<label for="joketext">Type your joke here:</label>
<textarea id="joketext" name="joketext" rows="3" cols="40">
</textarea>
</div>
<div><input type="submit" value="Add"/></div>
</form>';
exit();
}
The thing is the form sends to ? as opposed to '?addjoke=1' or similar. If you change the action to this, it should satisfy the
if (isset($_GET['addjoke']))
conditional
diafol
Keep Smiling
10,666 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,514
Skill Endorsements: 57
Question Answered as of 1 Year Ago by
diafol