php to validate data email in Mysql php script or java schript to start php

Issues related to forms.
Post Reply
owain
 
 
Posts: 8
Joined: Mon Aug 27, 2018 11:45 am

php to validate data email in Mysql php script or java schript to start php

Post by owain » Mon Aug 27, 2018 2:59 pm

I want to execute a php script when changes a value in an editbox of a form
I want to check in a php script if a value already exists in a mysql table or with java I dont want to leave the page before posting the valuses to the table.

User avatar
Pablo
 
Posts: 14518
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: php to validate data email in Mysql php script or java schript to start php

Post by Pablo » Mon Aug 27, 2018 3:11 pm

There is no standard solution for this. This will require programming (JavaScript, PHP and AJAX).

owain
 
 
Posts: 8
Joined: Mon Aug 27, 2018 11:45 am

Re: php to validate data email in Mysql php script or java schript to start php

Post by owain » Mon Aug 27, 2018 4:36 pm

yes I kow,
but I dont know how to link the script on the onchange event yes but then further writing the php is not the problem but I don't know how and where to get things togheter.

User avatar
Pablo
 
Posts: 14518
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: php to validate data email in Mysql php script or java schript to start php

Post by Pablo » Mon Aug 27, 2018 4:50 pm

1. Create a JavaScript function, for example in the Page HTML/between the heads tags.
2. Call it via an onchange event.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests