You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Form sumbits to, Sorry, this Module isn't active! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
tpwalker1980
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2006
Posts: 4


PostPosted: Thu Jun 08, 2006 8:56 am Reply with quoteBack to top

Alright guys, im at my wits end...

I made this hacked together form used for recruitment on a guild site..
But for some reason everytime I try to submit an application it completes to "Sorry, this module isn't active!" Though I've checked in the admin section of nuke to make sure it is active.

Like I said the form itself loads, but when I try to process is when I get the error. The proccess of the form and the form itself are both in the same page ... just with different functions.

Would someone PLEASE be kind enough to look it over and inform me what i've done wrong? I used to use nuke a long time ago and am now just starting to get used to its quirks again. Thanks.


..... Evidently I can't post the whole code here..
so you can find it at

http://www.devotion-guild.com/formcode.htm
Find all posts by tpwalker1980View user's profileSend private message
webjunky
Lieutenant
Lieutenant


Joined: May 11, 2003
Posts: 167


PostPosted: Thu Jun 08, 2006 9:28 am Reply with quoteBack to top

Try change:

"<form action=\"modules.php?name=Your_Account&op=recruitpost\" method=\"post\">


to

"<form action=\"modules.php?name=$module_name&op=recruitpost\" method=\"post\">

_________________
- Do not pm me for help -
Find all posts by webjunkyView user's profileSend private message
tpwalker1980
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2006
Posts: 4


PostPosted: Thu Jun 08, 2006 9:41 am Reply with quoteBack to top

Changes made..
Sorry I originally had the function in the Your_Account module till I ran into this problem and built its own module for testing..

Anyhow, that still brings up the same error.
I also went through and corrected the call to db function $dbi to $db throughout the file and that didn't seem to help either.

I have updated the htm file with the code to reflect these changes to for anyone else trying to help me Smile

http://www.devotion-guild.com/formcode.htm

FYI:
IE gets error : Sorry, this Module isn't active!
Firefox gets error: Sorry, such file doesn't exist...

Which leaves me to believe it can't find the Function... but why?
Find all posts by tpwalker1980View user's profileSend private message
webjunky
Lieutenant
Lieutenant


Joined: May 11, 2003
Posts: 167


PostPosted: Fri Jun 09, 2006 6:12 am Reply with quoteBack to top

Okey...

Did not notice it before but

"<form action=\"modules.php?name=$module_name&op=recruitpost\" method=\"post\">

should be;

"<form action=\"modules.php?name=$module_name\" method=\"post\">
<input type=hidden name=op value=\"recruitpost\">

_________________
- Do not pm me for help -
Find all posts by webjunkyView user's profileSend private message
tpwalker1980
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2006
Posts: 4


PostPosted: Fri Jun 09, 2006 9:38 am Reply with quoteBack to top

Well, that didn't work.

Same issue as before

IE says Module inactive.. and Firefox says file does not exist
Find all posts by tpwalker1980View user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 937

Location: United Kingdom

PostPosted: Fri Jun 09, 2006 12:15 pm Reply with quoteBack to top

Code:
<tr>
<td width=\"12%\">Name:</td>
<td width=\"88%\"><input type=\"text\" name=\"name\" size=\"20\" value=\"{$username}\" tabindex=\"1\"></td>
</tr>

See how the name of the above text field is "name"? well when you submit the form, the action (as it should be) is:
Code:
<form action=\"modules.php?name=$module_name&op=recruitpost\" method=\"post\">


Well name there is the name of your module. If you have a field with the name "name", then the value of this field, in my case arnoldkrg, is substituted for the name of the module. So the form is submitted to a module called arnoldkrg, which doesnt exist so you get the error. Solution is to change the name of the name field to something else xyzname for instance.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
tpwalker1980
Nuke Cadet
Nuke Cadet


Joined: Jun 08, 2006
Posts: 4


PostPosted: Fri Jun 09, 2006 6:53 pm Reply with quoteBack to top

Duh, I must have looked that over about 50 times....

Thanks arnoldkrg!

All is well now
Find all posts by tpwalker1980View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.182 Seconds - 218 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::