The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Anyone any links to any tutorials? This is driving me mental, and I haven't even got to the news item addition form yet.
Anyone any links to any tutorials? This is driving me mental, and I haven't even got to the news item addition form yet.
> Do you need help with forms for php css and mysql or just a general
> php guide?
I've found this: -
[URL]http://webmonkey.wired.com/webmonkey/99/21/index3a_page4.html?tw=programming[/URL]
That I'm trying to convert. Infuriating so far. It's not picking up the submit. Grrr.
General principals though (no CSS however) as it's avoiding all of dreamweavers appalling support.
> Afternoon wrote:
> Do you need help with forms for php css and mysql or just a general
> php guide?
>
> I've found this: -
>
> [URL]http://webmonkey.wired.com/webmonkey/99/21/index3a_page4.html?tw=programming[/URL]
>
Ignore, simply cutting and pasting the code doesn't work. I love it when code in tutorials are wrong. Nothing is more annoying.
while (list($name, $value) = each($HTTP_POST_VARS)) {
echo "$name = $value
\n";
}
} else {
// do the rest of the page
?>
sorted. I can go on now.
if (isset($_POST['submit'])) {
foreach ($_POST as $name=>$value) {
echo "$name = $value
\n";
}
} else {
// do the rest of the page.
}
?>
... it may seem to do the same, but I think its better to learn how its done now rather than past methods - you'll find getting to grips with bigger projects a lot easier.
$_POST is the replacement to $HTTP_POST_VARS
$_GET is the replacement to $HTTP_GET_VARS
$_COOKIE is the replacement to $HTTP_COOKIE_VARS
$_SERVER is the replacement to $HTTP_SERVER_VARS
$_ENV is the replacement to $HTTP_ENV_VARS
$_SESSION is the replacement to $HTTP_SESSION_VARS
$_FILES is the replacement to $HTTP_POST_FILES
> ... it may seem to do the same, but I think its better to learn how
> its done now rather than past methods - you'll find getting to grips
> with bigger projects a lot easier.
Yeah, just getting the damn thing picking up to start with in. ;)
if (isset($_POST['submit'])){
$display = intval($_POST['display']);
$date = intval($_POST['date']);
$postedBy = intval($_POST['postedBy']);
$header = (string)$_POST['header'];
$newsimage = (string)$_POST['myfiles'];
$imagealt = (string)$_POST['imagealt'];
$body = $_POST['body'];
*PROCESS
} else {
* rest of page
}