Jump to content

Recommended Posts

Hi guys,

 

My first post on here in ages!

 

I'm looking for some advice on form submission. The method i've been using for some time now is starting to cause me problems on one form in particular. I'll try my best to explain:

 

Someone submits an enquiry on an item listed on a website. Their enquiry includes their contact info such as name, address, telephone, email etc. That goes into a db. The administrator is notified of this and adds costings to the enquiry, which then sends the customer an email asking them to confirm their acceptance. The email contains a simple 'CLICK HERE' which takes them to a form showing all the details they originally submitted along with the info the administrator has added. They can change any of the details they originally submitted as well as adding a purchase order number. When they click the submit button this is where the problems are occuring.

 

I'm using the URL to send the info from EVERY editable field on the confirmation form and it seems as though it's too much for the URL to handle because I'm getting reports of the form 'freezing' and 'doing nothing' and 'going to just a blank white page'

 

Is there some other way I can submit the edited info to the db to avoid this? I'm no expert, as you can probably tell (!), so any advice I would very much welcome.

Link to comment
https://forums.phpfreaks.com/topic/130863-form-submission-advice/
Share on other sites

Cheers - that's not a million miles from what i'm doing now, it's just that my current method involves sending other variables with the URL other than just '?id=x' at the end. What's the best way to update the values of id=x without adding them to the URL? Is there some sort of update function available for this?

1. Select the record from the database via the URL id

2. Put the database field values back into the form fields

3. Store the id in a hidden form field to retain the value

4. When the form is posted update the database record using the id in the WHERE claus

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.