onto the next question about cakePHP 🙂
In php, I am able to simulate a form submit by for example browsing to a url like
<a href="index.php?click=yes&ip=127.0.0.1">submit youre ip</a>
this would submit the form on index.php with the values of click being yes and ip being 127.0.0.1 without having to click a submit form.
How would I achieve the same thing in CakePHP?
Thanks in advance for any help with this!
You would need to setup an index action in a controller.
An example:
If you want to add an user with the above data, you can do the following:
Now if you go to http://localhost/users/add/yes/127.0.0.1 it should save the data…