So I’m creating a route that requires posting. The route is as follows: So I use postman to hit app_dev.php/myroute/login and I get the correct response that I am looking for, currently the page just returns “hello world”. Now when I change postman to just hit app.php/myroute/login I get an …
Tag: post
Lost data because of 301 error (POST)
I’ve a 301 error after doing my POST Form… When I submit my form, I lose all my data and I don’t know why. I search on the net but I don’t understand anything because my english is too bad to do it… My HTML code addSwitchPort.html : My PHP code addSwitchPort.php : This is the cod…
Codeigniter is giving me an error called “Disallowed Key Characters.”
I have a input with name=”exam[A+]”. I have figured out that when I called $this->input->post(“exam”) it is giving me an error called “Disallowed Key Characters”. I want to add + sign in my key characters. Here is the code in the system file. How do I change the regul…
PHP – hide url (GET) parameters
I have a link in my PHP/HTML like this: When users click on the link, the parameters are handled by a 3rd party website which log the users in seamlessly. Is it possible to hide/mask/camouflage the url so that users don’t see the parameters while still passing them over to the designated site? If no, ho…
How does this whitelist array affect $_POST data inside the foreach()?
I’m confused as to exactly what this does and how do you use it in your form processing. Does it only remove unwanted $_POST entries that are not in $expected[]? Should I still use $_POST[ ‘carModel’] to get the value? Or might there be a better way? Answer Right, the pseudo-code ${$variable…
Send value of submit button when form gets posted
I have a list of names and some buttons with product names. When one of the buttons is clicked the information of the list is sent to a PHP script, but I can’t hit the submit button to send its value. How is it done? I boiled my code down to the following: The sending page: The receiving page: buy.php
Simple PHP: getting variable from a form input
I can’t really use PHP and from what I’ve seen in tutorials this should work, but it doesn’t: <input type='text' name=…
getting value of with $_POST gives text
So, I’m retrieving these options from a database and I need to retrieve the value but I’m getting the text in between the tags by doing this therefore if I print $inst I get the “IUTIRLA” for the first option but I need the 41 I don’t know what I’m doing wrong… this i…
How can I save TXT Files from a HTML textarea, using PHP?
I am trying to make a text file storage system for my website. Here is what I have so far. I have gotten some parts to work, but am getting many more errors after making a few changes I thought would help. I am trying to accomplish this task without changing pages or url. If the only way is to
Remote Server File Upload Via PHP
I have two servers, one with my website, the other for storage. I’m trying to have a page where someone can upload a file to the storage server, I’m hoping to use a form post to get it there. I’ve …