LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-01-2004, 02:32 PM   #1
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Rep: Reputation: 15
Post information not coming through PHP form.


I am running Apache 1.3.26 and PHP 4.3.1. The problem I am having is when visitors to my site fill out my online form and hit submit, the information from the form doesnt apear to come across in the post. But, if they hit refresh and resend the data, it DOES come through. Or if they hit their back button on the browser, then hit submit again, it will work. Its just the intial time they hit submit that it seems to not work. This one has me a bit stumped. What would cause information to not come through in the post on the first try? The stranger thing is, this server has been up and running these forms for a few years without problem... but in the last few weeks, this has been happening. Can anybody offer some suggestions or advice on things to check? If you need more information about my configuration, scripts, etc... let me know.

Thanks much!
Joe
 
Old 04-02-2004, 12:42 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
You say its been running those forms for a few years without problems? Has the server been running the same version of Apache/PHP the whole time, or has it been upgraded recently...or ever?
 
Old 04-02-2004, 01:07 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Perhaps you could use etherreal to see if hte browser actually sends the data? It sounds like a broken browser or cache server to me.
 
Old 04-02-2004, 01:39 PM   #4
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jinksys
You say its been running those forms for a few years without problems? Has the server been running the same version of Apache/PHP the whole time, or has it been upgraded recently...or ever?
Nope, nothing has changed in the last year... I checked the time stamps on lots of files relating to PHP and Apache, and they are all about a year old (almost exactly). Nothing has been upgraded or anything.

The problem seems to be somewhat random, sometimes I will fill out the form and it will be processed correctly, then I try it again, and it fails. I did 3 in a row that were successful, then 2 in a row that were unsuccessful, then 1 that wa succesful. It seems to be random. Sometimes the POST comes through, other times it doesnt.

Just now I downloaded php-4.3.5 and installed that (or tried to) hoping to accidently fix this POST problem by reinstalling PHP, but I cant seem to get php 4.3.5 to install over 4.3.1. Everything runs successfully, but then I run phpinfo() and it still has the old version number listed. This is a side matter though... main problem is still the forms not working 100% of the time...

Nothing stands out in error logs or messages. I am stumped... this sucks. heh
 
Old 04-02-2004, 01:40 PM   #5
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
Maybe you could post some code snippets? Perhaps its the php code that is buggy?
 
Old 04-02-2004, 01:42 PM   #6
m3kgt
Member
 
Registered: Oct 2003
Location: WA
Distribution: Redhat 3.0ES & Slackware 8.1
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jinksys
Maybe you could post some code snippets? Perhaps its the php code that is buggy?
Possibly... but not likely. Just because its the same code we use on probably 10 different sites... they have all worked flawlessly for over a year. Our developer hasnt touched that script in a long time... so I dont think so. I will talk to him about posting up some code though... just so you can take a look. My instinct says its server related though....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i simulate a form post with cookies in it? verbatim Programming 1 05-11-2005 09:52 PM
is this php automatic form submit post wriiten correctly? fsock error.. verbatim Programming 1 05-11-2005 10:24 AM
Submitting a POST Form with Links HappyDude Programming 0 10-24-2004 02:07 AM
PHP:Unable to post variables from html form to mysql database vikram_cvk Linux - Software 1 09-29-2004 03:01 PM
PHP and HTML Form Post Savahn Programming 12 06-30-2004 03:15 PM


All times are GMT -5. The time now is 05:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration