php


Submitting the same value many times when the value needs to be unique


I have a form where I have 11 elements, for simplicity purposes I am going to show only three on here.
1 Member Name: => Text field
2 Membership Type: => Select options field
3 Invoice ID: => Text field.
The requirement condition for this form is that the Invoice Id needs to be unique and has a post processor that checks if the Invoice Id already exists in the database. If the Invoice Id is in the database then the form submit returns an error or else it submits. Now the problem I am having with this is that sometimes the User needs to update or change the Membership type without touching the Invoice ID, in these circumstances the form needs to be submitted but the processor blocks it since the Invoice Id will already be in the database.
Note: this form submits to the members table so there is auto increment id number for each record.
So I solved this issue with this way. Since this form relates to a member table, Each Record will have a unique ID. I modified the form post processer to check for every invoice id in the table but the current ID. This way I can make sure the form will be saved every time while having a unique invoice id for each record.

Related Links

wordpress APi integration
How Remove extra tag in xml in php
How to add a custom year drop-down in place of Export CSV drop-down on admin panel for custom grid and filter the collection?
Sending boolean values with $.ajax to PHP
Loop row in bootstrap every 3 columns
Get friends name/id list form graph api into array
LAMP shows index.php in var/www/html instead of project
How To play 25MB+ audio file directly from google drive in HTML 5?
PHP/MYSQL - Select option value not being sent?
Laravel : How to use a parameters in a Form POST to be use in a Route::post?
How to convert object format to json format in php
laravel,how i can change the code to return an array?
How to make At Least Two Field Required to fill in Laravel 5.2
How do I allow PHP to run when the script is not in the URL?
How to check if a file is BEING used, i.e. some command is being executed on the data in that file?
Display profile data from database when login

Categories

HOME
verification
barcode-scanner
antd
foaf
out-of-memory
ios-simulator
visual-studio-2010
odata
apk
tcp
cryptography
elk-stack
pyresttest
phpseclib
wine
getopenfilename
cname
spring-amqp
squirrel-sql
jodatime
orange-api
reselect
google-cloud-logging
android-5.1.1-lollipop
bluemix-mobile-services
maven-surefire-plugin
eclipse-emf
sap-lumira
android-service
math.js
php-5.3
pyspark-sql
toad
john-the-ripper
overwrite
om-next
autoencoder
stackpanel
aurelia-cli
cartopy
spring-restcontroller
oauth2
grails-spring-security
hdiv
coverage.py
code-push
jshint
xcode8.2
qvtkwidget
image-registration
uiautomatorviewer
jgrapht
amazon-elastic-beanstalk
visual-format-language
skip-lists
simple-schema
ltrace
sidewaffle
instafeedjs
cognos-tm1
gawk
elastic4s
raw-sockets
eclemma
node-glob
frame-grab
verisign
odesk
miniconda
juniper-network-connect
ruby-on-rails-4.1
openshift-cartridge
mixins
jnlp
supersocket.net
ngcordova
karma-coverage
subfolder
rfc5545
directorysearcher
microsoft-expression-web
inequality
inputbox
back
osascript
aho-corasick
full-text-indexing
stripe.net
boolean-algebra
jmenubar
objective-c-runtime
.net-remoting
rikulo
axacropdf
jbox2d
proc-open
lynx
cgrectmake
ip-geolocation
daap
zend-pdf
dropshadow
fbml
django-apps
firefly-mv
fork-join
upshot
ninject-interception
odac
rtti

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App