Category : get

I have finally almost figured out my coding project after many rewrites, but now I can’t get the errors to appear although I had them working before adding the submit-button IF statements to solve another problem. Now I can’t figure out how to get them to populate without causing both the form and the thank ..

Read more

I am getting a value from the url lets say https://xxxxxxxx/?lastname=O%5C%27CONNOR in my php file I am using: $lastname = $_GET[‘lastname’]; then this should be as easy as doing; $lastname = striplashes($_GET[‘lastname’]); or the long way option 1: $lastname = $_GET[‘lastname’]; $lastname_clean = stripslashes(urldecode($lastname)); ANY OF THAT WORKS I even tried using str_replace $nothis = ..

Read more

I know this isn’t the most efficient PHP code, but I have gone the rounds and have gotten the furthest with this. However, I am struggling to get the results that I need for this project. Result Needed: Before the submit button is clicked: I need the t-shirt option drop-downs and customer contact form information ..

Read more

Sorry if I’m not good at formulating questions or if this isn’t a good question, but I’ve been trying for days and getting no progress on this and I’m ready to effing cry. Please, please help. So this PHP file: <?php header("Content-Type: application/json; charset=UTF-8"); $obj = json_decode($_GET["x"], true); $conn = new mysqli("localhost", "user", "password", "database"); ..

Read more

I ran into a problem in General. Already that day I have been observing the following: AH00126: Invalid URI in request HEAD /icons/.%2e/%2e%2e/apache2/icons/sphere1.png HTTP/1.1 AH01630: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1 AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd HTTP/1.1 AH01630: client denied by server configuration: /var/www/*****/html/ What is it anyway? How to deal with ..

Read more

Using PHP script, I need to process data from the two provided APIs to have a nested array of companies with travel cost. I have downloaded xampp, and I have curl enabled. Apache and MySQL modules are running on server. https://5f27781bf5d27e001612e057.mockapi.io/webprovise/companies https://5f27781bf5d27e001612e057.mockapi.io/webprovise/travels https://sandbox.onlinephpfunctions.com/code/c146370c89f2bf1a606f3de8a32b75d58e544289 Sourc..

Read more

Use the php class to make two requests, curl post and get. class Parser { private $url; private $ch; public function __construct($print = false){ $this->ch = curl_init(); if (!$print){ curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true) ; } } public function set($name, $value){ curl_setopt($this->ch, $name, $value); return $this; } public function exec($url){ curl_setopt($this->ch, CURLOPT_URL, $url); return curl_exec($this->ch); } public ..

Read more

<input type="date" class="form-control" name="from" value="{{ date(‘Y-m-d’) }}">&nbsp; <input type="date" class="form-control" name="to" value="{{ date(‘Y-m-d’) }}"> <a href="{{ url("/totalsales/{{ }}") }}"></a> i want to send ‘from’ and ‘to’ to controller from blade. how to write that in the tag. the necessary code is mentioned above. Thanks for your help in advance. Sourc..

Read more