Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 13th, 2004, 03:38 PM
DBAC DBAC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 DBAC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old September 13th, 2004, 11:08 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 55 Viper_SB Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 30 m 53 sec
Reputation Power: 0
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?
__________________
Custom Monster Hosting custom hosting.
27/7 live toll free support.

Viper_SB

Reply With Quote
  #3  
Old September 14th, 2004, 08:17 AM
DBAC DBAC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 DBAC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old September 14th, 2004, 08:55 AM
DBAC DBAC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 DBAC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old September 14th, 2004, 10:21 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 55 Viper_SB Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 h 30 m 53 sec
Reputation Power: 0
can you post your code? both the form and the check (not all of it is needed just the if statement)

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Help with PHP and HTML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway