Forum Moderators: coopster

Message Too Old, No Replies

Forms with dynamic URLs

Cant find my submitted variables

         

olwen

6:54 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



I decided to stretch my horizons. I was already doing some dynamic pages on some of my sites, but I decided to write a complete site around a database, some templates and 404 redirection to produce the pages. Set up the site using phpMyAdmin to enter the data, and was able to produce several differnt styles of pages with the help of parameters etc.

Then I started to write the admin screens for it, and it appears that I am losing the submitted variable using this approach. $_GET and $_POST are both empty. Is the use of forms possible with theis framework.

The technique to produce the pages is on that I learnt here. I have my 404 script calling index.php which then does all the work.

bcolflesh

6:57 pm on Aug 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



GET or POST send the data to the target page - in your case the 404 handler page - those values won't get passed on to the subsequent pages your 404 handler is going to. Use sessions for those values.

olwen

7:07 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



I was intedning to use sessions, but maybe I'm going to need a page specifically to collect the variables. I wanted to write my website with only one page.
My entire site at the moment revolves around index.php with

<?php
print "post ".count($_POST);
print "get ".count($_GET);
include "setup.inc";
include $incpath."siteincludes/site.inc";
?>

And the first 2 lines are just for debugging. :)