| | |
Passing form data to default file of a directory
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2008
Posts: 141
Reputation:
Solved Threads: 19
You could always use apache's mod_rewrite, so forward all requests for http://www.example.com/directory/ to http://www.example.com/directory/default.php.
You'd need to add one for each directory though I think.
And it may be worth adding a parameter on the URL such as ?form so that you can distinguish between form submissions and normal page accesses if default.php serves a page to users without form submissions.
R
You'd need to add one for each directory though I think.
And it may be worth adding a parameter on the URL such as ?form so that you can distinguish between form submissions and normal page accesses if default.php serves a page to users without form submissions.
R
![]() |
Other Threads in the PHP Forum
- Previous Thread: please help
- Next Thread: search from database
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link list login loop mail menu mlm mod_rewrite msqli_multi_query multiple mycodeisbad mysql oop parse paypal pdf php problem query radio random recursion regex remote script search send seo server sessions sms soap source space sql static structure syntax system table tutorial update upload url validation validator variable video web webdesign wordpress xml youtube





