GetDotted Domains

Viewing Thread:
"PHP, Mysql, Cs forms"

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.

Tue 26/10/04 at 15:29
Regular
"Lisan al-Gaib"
Posts: 7,093
Ok, it's a huge pain using post forms in HTML, but moving to css and php using a mysql database has stumped me completely

Anyone any links to any tutorials? This is driving me mental, and I haven't even got to the news item addition form yet.
Tue 26/10/04 at 15:29
Regular
"Lisan al-Gaib"
Posts: 7,093
Ok, it's a huge pain using post forms in HTML, but moving to css and php using a mysql database has stumped me completely

Anyone any links to any tutorials? This is driving me mental, and I haven't even got to the news item addition form yet.
Tue 26/10/04 at 16:09
Regular
"Freeola Support"
Posts: 700
Do you need help with forms for php css and mysql or just a general php guide?
Tue 26/10/04 at 16:19
Regular
"Lisan al-Gaib"
Posts: 7,093
Tue 26/10/04 at 16:19
Regular
"Lisan al-Gaib"
Posts: 7,093
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]

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.
Tue 26/10/04 at 16:26
Regular
"Lisan al-Gaib"
Posts: 7,093
Pandaemonium wrote:
> 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.
Tue 26/10/04 at 16:36
Regular
"Lisan al-Gaib"
Posts: 7,093
Fixed.

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.
Tue 26/10/04 at 22:26
Regular
"It goes so quickly"
Posts: 4,083
Where did you pick up that example from? As it is syntax for older versions of PHP. Try using this:

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
Wed 27/10/04 at 08:48
Regular
"Lisan al-Gaib"
Posts: 7,093
cjh wrote:
> ... 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
}

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.