User Defined Tag for self posting PHP form
Posted: Tue Jul 10, 2007 6:44 pm
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?
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-registrationHi 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.