Welcome Guest, Not a member yet? Register   Sign In
Url parameter
#1

[eluser]Thiago Leao[/eluser]
I would like to know how to pass two parameters in a url.

Example:
Code:
pagina.php?id=$id&name;=$name


thanks friends!
#2

[eluser]techgnome[/eluser]
base_URL/controller/method/param1/param2.... that's the technique I've been using.

-tg
#3

[eluser]Thiago Leao[/eluser]
Code:
<a >id_pictures; ?&gt;/&lt;?php echo $item->id_products; ?&gt;" onClick="return(deleta());" title="Apagar">
                            &lt;?php echo img(array('src' => 'assets/admin/images/apagar.png', 'alt' => 'Apagar'));?&gt;</a>


would that be?
thanks
#4

[eluser]Thiago Leao[/eluser]
Well what I want is the following:

I'm uploading the product with id 8.
When I delete the image, I want to reload the page, returning the same id ...
Only it's giving an error, it is not coming back to the id 8!!

View upload_produto.php

Code:
<th width="28">
                            <a >id_pictures; ?&gt;/&lt;?php echo $item->id_products; ?&gt;" onClick="return(deleta());" title="Apagar">
                            &lt;?php echo img(array('src' => 'assets/admin/images/apagar.png', 'alt' => 'Apagar'));?&gt;</a>
                        </th>

controller cad_produto.php

Code:
function upload($id_products){
        
        $param['titulo'] = 'Catalogo Colletion - AdministraĆ§Ć£o!';    
    
        $this->load->model('administracao/cad_produto_model');
        
        $param['dados_produto'] = $this->cad_produto_model->alterar($id_products);
        $param['produtos']         = $this->cad_produto_model->listar_img($id_products);
    
        $this->load->view('administracao/upload_produto', $param);
        
    }
    
    function removePhoto($id_pictures){
        $this->load->model('administracao/cad_produto_model');    
        $this->cad_produto_model->removePhoto($id_pictures);
        
        $data['id_products']     = $this->input->get('id_products');
        redirect(base_url().'administracao/cad_produto/upload/', 'refresh');
}
#5

[eluser]Thiago Leao[/eluser]
Any help?
pls, thanks!




Theme © iAndrew 2016 - Forum software by © MyBB