I could not find this question on the forum. I’d like to pass GET and POST parameters with single link. The reason I’d like to do it is to maintain good looking urls with not too many GET parameters.
I’m passing now just one GET parameter which is used in the URL rules. On top of that I’d like to pass 3 more POST parameters which could be intercepted and used on the landing page. Is it feasible with Yii2 ? Thanks in advance
It’s not about Yii. Html in general doesn’t allow you to pass POST parameters in a standard link (a href…). You either have to post a form or do a bit of work with JS/jQuery.