im back! ....with another prob :(

A

Anonymous

Guest
hi, easy one this time :) (i hope) basically, ive changed the structure of my site to always use 1 page but load other pages into the center cell (the include command basically) but now my forms dont work :S

it worked before and the only actual difference is the action of the form, instead of it pointing to..

exasperationpa.php

...its now...

index.php?page=exasperation

...and the code on index.php is..

<?php
$check = isset($page);
if ($check == 1)
{
if (@fopen("$page.php", "r"))
{
include ("$page.php");
}
if (!(@fopen("$page.php", "r")))
{
include("404.php");
}
}
if ($check <> 1)
{
include("home.php");
}
?>

...loads the page fine, but i get a php...

Notice: Undefined index: attempt in C:\PROGRAM FILES\ABYSS WEB SERVER\htdocs\freefornow\exasperationpa.php on line 3

...line 3 of exasperationpa being...

$typed = $_POST['attempt'];

...so obviously it cant read the value entered in the form anymore, is this a problem with using includes? and is they a fix?

thanks, if its anything to do with my settings, heres an info page...

http://freefornow.dyndns.org/freefornow/info.php
 
ah tis ok, a dam good guy with a dam good eye spotted the forms input box was named 'attempt2' instead of 'attempt' :roll:

note to self: dont copy and paste in dreamweaver :)

anyway, all fixed and working again :D
 
Back
Top