| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with PHP and HTML
Ok, I have PHP code controlling much of the website I'm working on, but just recently I ran into a problem. I was at a form and when I try and submit, it doesn't submit (or at least I don't think it is) any of my POST variables. I check the source code (HTML) and I can see that the input tags are there, but when I have my PHP program print out the POST array on the next page (after submission) it's empty. This is odd because everything was working until I moved things to a different computer. I think I may have forgotten to setup some setting in Apache or the PHP.ini, but I can't figure it out for the life of me.
I would post code, but there is so much of it and it relies on other bits of code so I don't really know what to post that would make sense for my problem. |
|
#2
|
||||
|
||||
|
no need to post code just yet, tell me how were you retiving the post data? via the $_POST? or just calling it i.e. $textfield
do you know if before you had register_globals on? or off? |
|
#3
|
|||
|
|||
|
Originally I had register_globals off, but just to try I turned them on with no luck in solving the problem (not really solving because I'd rather keep them off). My main code access the input via specific names (i.e. <input type=xxxx name=WhatEverIsHere ...>), but I also put in temporary code that printed out $_POST. I'll continue working on it today, thanks for the help...
DBAC |
|
#4
|
|||
|
|||
|
Oddly enough, there seems to be a random occurance where information is sent. I'm working on this form where there is a tag:
Code:
<input type="hidden" name="flag" value="1"> When submitted, this data should allow the PHP logic to drop through the next IF statement, but this is not being passed so instead the PHP logic falls through to the else statement, effectivly refreshing the page. Here is where the strange part comes in, I continue to try and submit the form over and over again and occasionaly the "flag" variable is passed and the program continues as normal. I have yet to see any pattern or reasoning to this occurance, but it seems to be making my job more difficult in determining the source of the problem. DBAC |
|
#5
|
||||
|
||||
|
can you post your code? both the form and the check (not all of it is needed just the if statement)
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Help with PHP and HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|