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, 61 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - FORM=POST ACTION=UNDER /MODULES - HOWTO? [ ]
 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
WD-40
Lieutenant
Lieutenant


Joined: Dec 02, 2004
Posts: 231


PostPosted: Sat May 14, 2005 6:16 pm Reply with quoteBack to top

Okay, here's the deal... I'm stuck.

I have a block that has a href link to modules.php?name=$module_name&file=jointeam and it loads fine however this is a form with following post action

Code:


<form method="post" action="<?php echo "modules.php?name=$module_name&file=jointeam2" ?>">



these files are located under the /modules/NukeMatch directory...

When you click on submit, it pops up with sorry, such page doesn't exist however it does. If you re-type the url it does load and I also tried changing it to GET however it didn't copy entire url.

I also changed above url to just /modules/NukeMatch/jointeam2.php and then it just loaded with blank white page.

If this file is located under the /root directory of nuke, it works fine without any problems. (<edit> when action changed to: "jointeam2.php") I also tried combining these two files with a if ($submit) { } else { } tages to open close, show body, and close however it keep showing url http://localhost/modules.php.

I've treid everything I could think of and went through both files multiple times. I'm going to try placing this file in other directory under /includes to see if this helps resolve anything as I'm not to upbeat about leaving file in root directory.

Any information regarding this would be appreciated as I tried searching but, never come up with anything good except uses between get and post and that's about it.


Thanks!

Sincerely -
Find all posts by WD-40View user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Sat May 14, 2005 6:55 pm Reply with quoteBack to top

Wouldn't it be easier to do..
Code:

<form method="post" action="modules.php?name=NukeMatch&file=jointeam2">

Unless you redeclare a variable name or file, it should work as intended

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
WD-40
Lieutenant
Lieutenant


Joined: Dec 02, 2004
Posts: 231


PostPosted: Sat May 14, 2005 7:19 pm Reply with quoteBack to top

Evaders99 wrote:
Wouldn't it be easier to do..
Code:

<form method="post" action="modules.php?name=NukeMatch&file=jointeam2">

Unless you redeclare a variable name or file, it should work as intended


It's jumping in and out of php into html is the reason for that particular line.

I've tried just inserting above without bring it back into php for echo statement however it still displayed exact same thing. Just really puzzles me why it works under root directory but, not when inserted within another below directory, unless I'm not calling it correctly. If you type that url in browser page comes up but, not when called from form.


Sincerely -
Find all posts by WD-40View user's profileSend private messageVisit poster's website
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.438 Seconds - 348 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::