|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#31
|
||||
|
||||
|
You've still got one thing backward:
PHP Code:
should be PHP Code:
As it currently stands, you're overwriting posted variables with blank values. Somebody earlier in the thread made a note of this (just didn't want to come across as if I was taking credit for the fix). |
|
#32
|
|||
|
|||
|
thanks i thought i fixed that.
now we got: Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site33/fst/var/www/html/php/sendinfo.php:9) in /home/virtual/site33/fst/var/www/html/php/sendinfo.php on line 42 i dont think i cut out for this stuff why is it that almost every time i use the "header" command i get that same error. Dave ![]() Last edited by dfano : July 15th, 2003 at 02:02 PM. |
|
#33
|
|||
|
|||
|
Yeah, you still have this part backwards!
PHP Code:
That means put the value of $Username into $_POST. You need to have that the other way: PHP Code:
This will put the value of $_POST into $Username. Also, no quotes around the variable names. Sorry, posted too late. I see you already got that info... Take out the echo's for your header bit to work. You need to have a "clean slate" to send headers. No spaces or returns outside of <?php tags either. That counts as "sending content" too. Last edited by avit : July 15th, 2003 at 02:44 PM. |
|
#34
|
|||
|
|||
|
thanks
dave |
|
#35
|
||||
|
||||
|
Dave... put this in your code
ob_start(); ob_flush(); Put ob_start(); at the very beginning, just below the <?php tag and ob_flush(); just before the ?> tag example: PHP Code:
![]() Last edited by nicat23 : July 15th, 2003 at 02:55 PM. |
|
#36
|
|||
|
|||
|
AAAAAHHHHHHH!!!!!!!!
same error
here is the code: Quote:
i really owe you guys dave Last edited by dfano : July 15th, 2003 at 04:11 PM. |
|
#37
|
|||
|
|||
|
Does anything show on the page before the error? Do you have any blank lines or spaces before the first <?php tag? You need to be sure those are gone. Shouldn't really need ob_start/flush here, but it doesn't hurt I guess.
|
|
#38
|
||||
|
||||
|
take out all of the echo's that you put in there for debugging, and take out the ob_start and ob_flush, see if that helps...
|
|
#39
|
|||
|
|||
|
i give up.....
try it, it work but now i think i have a server problem, im going to e-mail the tech guy. http://www.fs3d.com/php/adminlogin.htm User - dave pw - 1234 i get a forbidden error i went in and changes the permisions on that directory to 777 - same crap thanks again dave Last edited by dfano : July 15th, 2003 at 04:11 PM. |
|
#40
|
||||
|
||||
|
didn't get a problem when I used it, it just didn't redirect...
|
|
#41
|
|||
|
|||
|
Amazing!!!!!!
holy CRAP
it works, woooo hoooo it works. ill be back at it soon, i learn this stuff eventually (i hope) on to sessions whoopy, i'll read some PHP Black Book first then i will start to bother. thanks again to all you guys, Dave Last edited by dfano : July 15th, 2003 at 04:03 PM. |
|
#42
|
|||
|
|||
|
Hey FOlks
Ive been GLUED to the screen reading this POST, I want EXACTLY
the same thing, now Can i get some people back here to give me the code so I can use it in my website now i want a user to login and be directed to a private page now, do i muck around for hours, or simply ask for the code, ill just ask hit me australia friend (lol) |
|
#43
|
||||
|
||||
|
drjone: Why dont you post what code you *do* have as opposed to asking for someone to write and design the code for you? That might get more users looking at the thread, also may I suggest you start another thread for this topic ? It'd keep things less cluttered..
![]() We're more than happy to help, but there arent many who will just *give* code away... Thanks.. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > User Login - url redirection? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|