1
vote
1answer
16 views

How To Insert Text From Input Field Into PHP Array

I have a form with input fields that when submited sends an email out through a WebAPI from SendGrid. Without writing out the whole come here are the important parts: HTML: <form ...
0
votes
0answers
8 views

PHP: translate from returned LDAP array to Drupal array

I'm making an intranet with Drupal and want people to log in with an already existing authentication system (a variation of shibboleth). I've got authentication working, such that when employees log ...
0
votes
1answer
9 views

MySQL /PHP- Selecting Members Based on Chosen Service(s) Updates

So basically there are 4 services offered by a Resort: services (Table with all resort services) ser_id ser_name 1 Breakfast 2 Dinner 3 Towels 4 Taxi Members can ...
0
votes
2answers
18 views

Match IDs taken from 2 inputs (JSON) and do something if positive

Here's a sample of a JSON entry output from Feedbin's entries.json: [ { "id": 2077, "title": "Objective-C Runtime Releases", "url": ...
0
votes
2answers
23 views

Keep Duplicates while Using array_diff

I am using array_diff() to take values out of array1 which are found in array2. The issue is it removes all occurrences from array1, as the PHP documentations makes note of. I want it to only take out ...
2
votes
3answers
50 views

Sort a PHP Array

I've been searching this and other websites for an answer for more than two hours now and can't find a sort function that seems to work. Here is my code: <?php { $ratingsArrayCounter = 0; ...
0
votes
1answer
19 views

Trying to grab a json file to cache it locally

<?php $json_url = 'https://api.feedbin.me/v2/entries.json'; $username = 'username'; // authentication $password = 'password'; // authentication $ch = curl_init( $json_url ); $options = array( ...
0
votes
1answer
32 views

jQuery autocomplete do not work with json

If I call the php file as source is does not autocomplete, but if I use an array it works. PHP $query = mysql_query($req); while($row = mysql_fetch_assoc($query)) { $results[] = ...
-1
votes
3answers
48 views

Algorithm not populating array

Using the script below, I am trying to execute two queries which store the output from each stored-procedure in two arrays. The first array is being populated with data while the second is remaining ...
0
votes
3answers
17 views

Limiting the number of JSON objects to process

<?php // JSON URL which should be requested $json_url = 'https://api.feedbin.me/v2/entries.json'; $username = 'username'; // authentication $password = 'password'; // authentication // ...
3
votes
2answers
27 views

Strange chars in JSON (obtained after cURL auth)

This is the function I use to grab a JSON file from Feedbin API. <?php error_reporting(E_ALL); // JSON URL which should be requested $json_url = 'https://api.feedbin.me/v2/entries.json'; ...
2
votes
2answers
32 views

Setting a ++ number variable as the array key

I have this code right now, it fetches the date and time. I wanted to create kind of a numbered index because I get back about 10 date and times in that one foreach loop. It's in a function and I need ...
0
votes
1answer
39 views

Multidimensional arrays PHP Error

I've been posting a single form fine to a checkout but I need my form to post multiple fields that repeat. My array is now showing Array ( [0] => Array ( [id] => ...
0
votes
1answer
32 views

add all checkbox values to array

My html code : <form method="post"> <input id="user1" value="user1" name="invite[]" type="checkbox"> <input id="user2" value="user2" name="invite[]" type="checkbox"> ...
0
votes
5answers
38 views

Select case with array

How can I write a select case with an array to check form validation? this is my code: $name = $_POST["name"]; $email = $_POST["email"]; $message = $_POST["message"]; $array = ...

1 2 3 4 5 1073
15 30 50 per page