Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 8th, 2004, 10:29 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Control form submit error

I've got a large form which submits to a .php on the server to store the results. The problem I have is that if there's a problem calling the .php, I don't know how to handle it. I mean, if there's a problem I want to be able to let the user retry the submit.

I've looke all over the place and can't find how to do this. Can anyone help, please?

Reply With Quote
  #2  
Old March 8th, 2004, 10:32 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Control form submit error

What kind of problem submitting? Missing values from the form that need to go to the script?

Reply With Quote
  #3  
Old March 8th, 2004, 10:49 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Control form submit error


Quote:
What kind of problem submitting? Missing values from the form that need to go to the script?


No. I mean what happens if just at the moment I send the script there are communication problemas or whatever and the values just don't get sent to the server.

Reply With Quote
  #4  
Old March 8th, 2004, 11:21 AM
GG Dart GG Dart is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 438 GG Dart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Control form submit error

that will nearly never happen, that would meen that at the moment that the user submits the form his internet conection closes. and if that would happen no one can do anything against that. he would have to get a new connection to the internet and then try again

Reply With Quote
  #5  
Old March 8th, 2004, 11:26 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Control form submit error


Quote:
that will nearly never happen, that would meen that at the moment that the user submits the form his internet conection closes. and if that would happen no one can do anything against that. he would have to get a new connection to the internet and then try again


OK. But exactly what I'd like to know is if there is any way to detect that this has happened and try again.

Reply With Quote
  #6  
Old March 8th, 2004, 11:27 AM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Control form submit error

Just save this script as test.php, and run it to see what happens.
php Code:
Original - php Code
  1. <?
  2. if($_POST['submit']) echo "Your name : ".$_POST['myname'];
  3. ?>
  4. <form action='".$_SERVER['PHP_SELF']."' method="post">
  5. Enter your name : <input type="text" name="myname"><br />
  6. <input type="submit" name="submit" value="Send">
  7. </form>

Reply With Quote
  #7  
Old March 8th, 2004, 11:43 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: Control form submit error

The user could always press the back button. You are talking about a physical connectivity problem. You really don't have anything to worry about in the way of storing the values in case something happens. If this goes on a lot on your server, there are bigger problems at hand, and I would address those first.

Reply With Quote
  #8  
Old March 22nd, 2004, 04:49 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Control form submit error


Quote:
The user could always press the back button. You are talking about a physical connectivity problem. You really don't have anything to worry about in the way of storing the values in case something happens. If this goes on a lot on your server, there are bigger problems at hand, and I would address those first.


Well, just to explain my problema a little more and see if anyone has any ideas. Our system does personality tests for personnel selection. Some of the tests are very long (300+ questions) and usually there will be 20 or more people doing the same test at the same time. Of course, anything can go wrong just when the user presses the submit button. As we can't count on our clients having good internet connections, or on the users being computer-wise, when there's a problem it cuases great distress. What usually happens is they get a 404 error or similar because the php which receives the values cannot be run. All I'd like to be able to do is know whether the submit has been succesful so that I can then present a friendly screen which says "Try again" or whatever.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Control form submit error


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 | 
  
 

Try It Free




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