php form pasing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thecoder
Forum Newbie
Posts: 2
Joined: Wed Jun 13, 2007 2:34 pm

php form pasing

Post by thecoder »

how do a person pass a form to 1 php page but dont move to it,thus dont change the header ect?

[s]coz[/s] because i saw this [s]alot[/s] a lot in phpf coding and dont understand it.

phpf sends a form to a php page but never change the header,so they redirect the form from the registering page to the add_acount.php but ends up at the forum.php page.file names are wrong


[s]thanx[/s] thanks for help in advance
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:11. Please use proper, complete spelling when posting in the forums. AOL Speak, leet speak and other abbreviated wording can confuse those that are trying to help you (or those that you are trying to help). Please keep in mind that there are many people from many countries that use our forums to read, post and learn. They do not always speak English as well as some of us, nor do they know these aberrant abbreviations. Therefore, use as few abbreviations as possible, especially when using such simple words.

Some examples of what not to do are ne1, any1 (anyone); u (you); ur (your or you're); 2 (to too); prolly (probably); afaik (as far as I know); etc.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Most of us prefer to handle the form on the same page. It's smarter than having a page simply for form handling. Who does that anymore? :-p

However, if you MUST, just send the form to the page and depending on whether or not the form was valid, use a header() redirection to either send them back or forth or whatever.
thecoder
Forum Newbie
Posts: 2
Joined: Wed Jun 13, 2007 2:34 pm

Post by thecoder »

so there is no other way in redirecting the form?

just using header?

*thanks*
Post Reply