PHP newbie questions!!!!

Discussion about the creation of websites in general, HTML, PHP, Java.

PHP newbie questions!!!!

Postby fishpoo222 on Mon Jan 01, 2007 11:14 pm

I've just finnished learning PHP and I feel sattisfied now that i know the basics but i still have a "how do they do that!?!?!" question thats realy bugging me:
when you have a login, or any other form, how do people do it so that the bit of php your info is being sent to isnt the page you end up seeing? and is that actualy php or is it javascript?

im also interest4ed to see if anyone else has any questions an solutions
Image
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
fishpoo222
Regular
Regular
 
Posts: 104
Joined: Tue Oct 04, 2005 5:12 pm
Location: reigate,surrey,england

Postby Samppa on Wed Jan 03, 2007 12:40 pm

I've got a q..

What's the scam? Cut me in and I won't talk.
(\__/)
(='.'=) This is RomMaster's Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
Samppa
Phoenix Veteran
Phoenix Veteran
 
Posts: 744
Joined: Thu Feb 02, 2006 10:00 am
Location: Finland

Postby fishpoo222 on Tue Jan 16, 2007 9:17 pm

??? im not scamming.............. all i mean is when a form posts to login.php how do you end up at index.html???
Image
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.
fishpoo222
Regular
Regular
 
Posts: 104
Joined: Tue Oct 04, 2005 5:12 pm
Location: reigate,surrey,england

Postby psychichigh on Wed Jan 17, 2007 2:18 am

usually parsing the $_POST variable and then forwarding to the correct page using any number of methods (like include_once()) or $_SESSION

I'm horrible at explaining so you'd have to have someone else explain, or you can read the manual that's at the php.net website on how to use all those things.
psychichigh
Newbie
Newbie
 
Posts: 7
Joined: Mon Jan 15, 2007 9:13 pm

Re: PHP newbie questions!!!!

Postby Executable on Fri Feb 16, 2007 10:13 pm

i suppose u mean when the client push the submit button the browser send the _POST data to login.php how the client gets to logged.html(for example).
try using php method header("Location: /path/logged.html");

sorry if i didn't understood ur question correct.
Executable
Newbie
Newbie
 
Posts: 2
Joined: Wed Feb 07, 2007 11:32 am

Re: PHP newbie questions!!!!

Postby De Kus on Mon Feb 19, 2007 9:28 pm

you can either read the refer http_var or just add a hidden form value when you send the login to the login.php. You should consider looking into open source projects like phpbb, joomla or whatever. They can be very inspirating ^-^.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany


Return to General Webmastering

Who is online

Users browsing this forum: No registered users and 1 guest

cron