Welcome Guest, Not a member yet? Register   Sign In
isset
#3

(This post was last modified: 11-07-2020, 11:38 AM by Jeewakapk.)

(11-06-2020, 12:26 PM)captain-sensible Wrote: you might not need a substitute since you can use isset. For example

I have a form with a submit button input as follows :

Code:
<input type="submit" name="submit" class="btn btn-info"value="submit" />
//the key thing here is the name of the button which is submit

in the controller that processes what was submitted from the form, i could check to see if the button was clicked with submit.

As follows :


Code:
echo isset($_POST['submit']);

i'm playing with forms at the moment and checked this still works , output was "1".

Thank you so much.
will be there any harm of mixing PHP core framework code with CI 4 code. like isset is PHP core framework code especially security risk

Thank you so much.
will be there any harm of mixing PHP core framework code with CI 4 code. like isset is PHP core framework code especially security risk
Reply


Messages In This Thread
isset - by Jeewakapk - 11-06-2020, 11:07 AM
RE: isset - by captain-sensible - 11-06-2020, 12:26 PM
RE: isset - by Jeewakapk - 11-07-2020, 11:37 AM
RE: isset - by captain-sensible - 11-07-2020, 11:50 AM
RE: isset - by Jeewakapk - 11-11-2020, 04:01 AM
RE: isset - by captain-sensible - 11-12-2020, 01:08 PM
RE: isset - by includebeer - 11-14-2020, 05:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB