User Defined Tag for self posting PHP form

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
snatrott
Forum Members
Forum Members
Posts: 26
Joined: Tue Mar 13, 2007 7:10 pm
Location: Wisconsin, USA/Bermuda

User Defined Tag for self posting PHP form

Post by snatrott »

I found this post from about a year ago, and I am having the exact same problem. However, the post was never replied to. Can anyone help?
Hi all, I have a complex "whois" script that I would like to include inside a CMS page. The script is a form that posts the form results to itself, via an included (INC) file in the PHP script.

I tried putting the standard PHP include statement in a user-defined tag to call whois.php. That displayed the form OK, but when I submit I just get the form again, not the results.

To test what was happening, I created a tag "echo "IP ADDRESS: " . $_SERVER['REMOTE_ADDR'];". What gets returned is the IP address of the shared web server, not the IP address of my domain. I think this is the problem, but I am not sure.

Can anyone tell me if they have had success including a self-posting form in a page? Can it be done with a tag or does it need to be done with a module? If a module, then I'm a bit lost because I've not built one of those yet.
I have the form all set up, but when I submit the form, I get set to my home page. Here is the link to the problem page: http://www.tynxis.com/newsite/index.php/domain-registration
Websites at NINJA Speed!
mattbeales
New Member
New Member
Posts: 5
Joined: Tue Mar 20, 2007 2:24 pm

Re: User Defined Tag for self posting PHP form

Post by mattbeales »

I'm having pretty much the same problem as well. The form will post back to itself and display the results table but with no results, so its not actually performing the lookup.

Does anyone have any ideas please??

Thanks

Matt
Post Reply

Return to “CMSMS Core”