You are using $_POST on your server, which means your form should do a POST request.
A few other things I am going to point out:
1) Your table should be normalized. You are storing data in here multiple times. What happens if someone changes their username?
Table 1: Associated_Users
[ID]...
Couple ways you could do this. You could do a JSON serializer, where you convert it into a class object, or you could do a LINQ from a parsed JSON.
So if you wanted to use a LINQ statement:
JObject geographicalJSON = JObject.Parse(json); //json = Your string JSON
double Temperature =...
Yeah I am working on recoding this, I see what my issue is.
It is expecting you to use the 'success' method to invoke the behavior you are expecting. So I am going to make an async function to control my message to the display, and hope it works, aha.
1607912205
Got it working. I recoded the...
So the same thing happens here too. It returns undefined:
result = undefined
async function(input) {
const result = await checkPhoneExists(input.value);
if (!Array.isArray(result['data']) || result['data'].length === 0)
return true;
var exists = result['data'][0];
return...
What I would suggest is having code that would never change, but is a big part of the system, to be a referenced DLL which also contains some sort of blocker for them to steal credits :)
Hey Guys,
How can I call a sync function for ajax url GET, and wait for a result (rather than returning "undefined" or an unfilled PROMISE ?
I have tried so many things and I can't get this function to work properly.
Parent Function:
checkValidity: function(input) {
for ( var i = 0; i...
Hey, I have that already allowing all domains
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: Origin, Methods, Content-Type");
To answer your points on the code:
First -
- The API is a JQuery Request, and in the code, above I was using Digest PHP Authentication, which I realize now is not easy to implement since you have to return a response, then reply again to gain access. So I am going to use basic authentication...
Okay,
I am ready for some criticism and feedback -
Here is my overall structure:
/ api / api.php
/ api / models / volunteer.php
/ api / security / authentication.php
Here is my Authentication File:
$realm = 'API';
$admins = array('REDACTED' => 'REDACTED', 'REDACTED2' =>...
Hey Guys,
So I am working on my own custom CMS for a client, who has requested that I give them an API that another system will be able to make simple calls to validate or pull information. So for example, they need to know if a phone number exists in my system.
Here is how I would like to do...
Rather than trying to implement this like the Habbo class is, I would implement this as a member of the Habbo.cs file.
The reason for this is you already have your GameClient, and Player instances. Really the RP is just an extension of a Habbo.
In Habbo.cs I would have a reference to...