ok, i just got tired of trying to do things the way i was doing it and just started over. now i have the form and the php mail function and everything all in the same php file. Im having some problems tho when trying to submit the form. I did some searching online and i saw someone talking about using $php_self for calling on the same application or whatever so i use it in my form tag like so:
When i try it like this, this gets displayed: Sorry, such file doesn't exist...
ok so i try setting the path to it and using the php_self like so
i get a page cannot be displayed. When i look at the address bar it looks like this: modules/testapp//modules.php
so its looking for a modules.php when its suppose to be looking for an index.php. so then i decided to try using index.php like this
i get page cannot be displayed also, but that should work cause the path is even correct. in the address bar i see: modules/testapp/index.php
that should be right. anyone have any ideas. i could sure use some right now. Thanks
Code:
<form action="<?= $PHP_SELF ?>" method="post">
ok so i try setting the path to it and using the php_self like so
Code:
<form action="modules/testapp/<?= $PHP_SELF ?>" method="post">
so its looking for a modules.php when its suppose to be looking for an index.php. so then i decided to try using index.php like this
Code:
<form action="modules/testapp/index.php" method="post">
that should be right. anyone have any ideas. i could sure use some right now. Thanks