Welcome Guest, Not a member yet? Register   Sign In
How does one make form_open() generate a link to the exact current URL?
#1

[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
#2

[eluser]mi6crazyheart[/eluser]
I think this will help u out...
Code:
<?php
$link = uri_string();
echo form_open($link);
?>
#3

[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
#4

[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.
#5

[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
#6

[eluser]nelson.wells[/eluser]
This has more to do with the first question, but why not do

Code:
echo form_open(current_url());




Theme © iAndrew 2016 - Forum software by © MyBB