|
creating a new mod and have a couple questions. -
04-05-2006, 03:01 AM
I'm creating a mod that allows my users to create/register their paintball teams.
I've created a table called nuke_teams and put it in my data base. My table categories are; name, city, state, owner, website.
I've set it up to insert the date into all the categories except for owner. I'd like to make the script detect the user that is logged in and registering the team, then insert that user's username into the owners category.
I'm not sure how to do that, could someone give me a clue?
The other question I have;
I have a register.php in my module's directory. All this file does, is include an html form that lets the users register. The problem I have is that when I have the users click "submit" it goes to a white page, and says record added(true). I've tried to change the insert.php file into a module file, and if I try to access it throuh "modules.php?name=teamreg&file=insert" it says, "sorry, no such file exists".
If I try to access it through "modules/teamreg/insert.php, it tells me that I don't have access.
I'd like to get rid of the white page, and try to keep it within the module.
I thought I was do'n it right, but its not cooperating.
|