473,320 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with PHP discussion forum

3
Hi!

I'm trying to get the discussion forum from this tutorial to work, but I have some problems. I have made a database according to the tutorial, and also turned on register_globals that this forum requires, but when I try to make a new topic and press the submit button nothing happens. I dont get an error message or anything.

Is there anyone who got this forum to work and have any idea on what I´m doing wrong, please reply.

Thanks in advance
/Sarek

PS. If you need more information on certain things in order to help me, just ask and I reply. Sry for my bad english.
Nov 28 '06 #1
6 1850
sarek
3
Hi!

I'm trying to get the discussion forum from this tutorial to work, but I have some problems. I have made a database according to the tutorial, and also turned on register_globals that this forum requires, but when I try to make a new topic and press the submit button nothing happens. I dont get an error message or anything.

Is there anyone who got this forum to work and have any idea on what I´m doing wrong, please reply.

Thanks in advance
/Sarek

PS. If you need more information on certain things in order to help me, just ask and I reply. Sry for my bad english.
Hmmm, now all of a sudden I can add a topic but when I klick on a certain topic to view it and to add a post, nothing shows up. The page view.php3 just loads and its a blank page, no errors or nothing.

Anyone knows whats wrong?
Nov 29 '06 #2
Hmmm, now all of a sudden I can add a topic but when I klick on a certain topic to view it and to add a post, nothing shows up. The page view.php3 just loads and its a blank page, no errors or nothing.

Anyone knows whats wrong?
Probably view.php has short PHP tags. You should replace them with full tags:

<? should be <?php

Also, you can eliminate the worrisome register_globals by putting the following at the top of each PHP script:

extract($_POST);

Any scripts that pass variables and values via URL (like edit-post.php, delete-post.php, and view.php) will also need:

extract($_GET);

This is by no means secure, but at least your server configuration hasn't been compromised while you test this script. The better approach would be to actually use the $_POST and $_GET arrays directly...
Nov 29 '06 #3
sarek
3
Probably view.php has short PHP tags. You should replace them with full tags:

<? should be <?php

Also, you can eliminate the worrisome register_globals by putting the following at the top of each PHP script:

extract($_POST);

Any scripts that pass variables and values via URL (like edit-post.php, delete-post.php, and view.php) will also need:

extract($_GET);

This is by no means secure, but at least your server configuration hasn't been compromised while you test this script. The better approach would be to actually use the $_POST and $_GET arrays directly...
Oh my god how blind one could be :-). You were right about the short tag in view.php, changed it and now it works. Thank you for your help, if I have another question I know who to ask ;-).

/Sarek
Nov 29 '06 #4
Oh my god how blind one could be :-). You were right about the short tag in view.php, changed it and now it works. Thank you for your help, if I have another question I know who to ask ;-).

/Sarek
It bites me all the time. I'm *finally* at a point where that's the first thing I check. Especially with older code.
Nov 29 '06 #5
ronverdonk
4,258 Expert 4TB
Does this all mean that your probel is solved. If so, we don't have to chase some 'older' members for this.

Ronald :cool:
Nov 29 '06 #6
Chrisjc
375 256MB
You can always try using

phpBB...

Rather nice...

Unless you are just wanting to set things up and try it all for your self...
But it you want a quick Forum up and easy to manage and use...

try: http://www.phpbb.com/

Chris
Nov 29 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: stenknz | last post by:
Does any one know where there is a good introduction to Discussion Forum scripting using PHP and MySQL. (Apache WS) I just need the nuts and bolts to get an overview of whats required. Regards,...
6
by: SeaPlusPlus | last post by:
I've got a problem... IE 6.0 twitches when I hover over a link then it won't twitch again for that group of links but will twitch the first time on the next group... and the next group... etc... ...
1
by: Nancy Shelley | last post by:
Hi all: I am building a navigation menu using telerik's rad treeview I am able to build the outer menu but not the children. How do I select the child nodes (item) from within the loop? Any...
2
by: Frank | last post by:
Hello, I would like to create a discussion forum. Anyone know of any good to decent articles/sources that would provide some sample code to get me started? Thanks in advance, Frank K.
4
by: maflatoun | last post by:
Hi, I'm looking at adding a discussion forum to our site (C# or VB.NET). Any recommendations for a good discussion forum software? (both free and $$$$). I looked at InstantForum and it seems...
2
by: mazdotnet | last post by:
Hi, I'm looking at adding a discussion forum to our site (C# or VB.NET). Any recommendations for a good discussion forum software? (both free and $$$$). I looked at InstantForum and it seems...
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
105
by: sw | last post by:
Hi all, I have a news website tat is developed on joomla 1.5.Login facility is done thru a login component.On each page,ther s a 'Log In' link that redirects them to a login page.On successful...
2
by: technica | last post by:
Hello All, We have started with a new programming discussion group on Gmail. TechnicalTalk is a group dedicated to computer programming discussion, programming tutorials, programming articles...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.