![]() |
How does one make form_open() generate a link to the exact current URL? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How does one make form_open() generate a link to the exact current URL? (/showthread.php?tid=33067) |
How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]tomclowes[/eluser] So I have a URL like http://domain.com/x/y/z/1/2/3 How do I utilize form_open to generate the opening form tags to go straight to exact same page? If it is not possible with form_open should i simply output the form open myself. Thanks How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]mi6crazyheart[/eluser] I think this will help u out... Code: <?php How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]tomclowes[/eluser] Thats great ! Thanks. So as to not create millions of posts - I will collate my queries here. I am now playing with the image manipulation functions. I have a big image which I am creating a thumbnail of. The space for thumbnails is 170 x 170 px. Say I have an image which is 340px x 10px it is resized to 170px x 5px. Is there a way to then increase the size of this image by essentially filling the remaining 165px wit 82.5px of black either side..? I was thinking some sort of negative crop.. ? Thanks How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]JHackamack[/eluser] The easiest HTML way would be to create an element that has the dimensions of 170x170 with a background color of black (or whatever color you want) and to center the image vertically inside the element. If you want to get more fancy you can do image manipulation to create a thumbnail of that size, but thats not my area of expertise. How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]tomclowes[/eluser] Thanks for the suggestion - that is what i intended to do, I was simply curious as to if CI had a 1-click way of doing it. Thanks How does one make form_open() generate a link to the exact current URL? - El Forum - 08-14-2010 [eluser]nelson.wells[/eluser] This has more to do with the first question, but why not do Code: echo form_open(current_url()); |