Forums / Setup & design / To redirect the link ..

To redirect the link ..

Author Message

nga patel

Friday 20 May 2005 8:14:45 am

In the design work of templates, I had used the same code to valid the guestbook entry as given in turorial but in my website it is as following:

<h3><div class="pagetitle">
    Mini-site, page générale
</div></h3>

<form enctype="multipart/form-data"
      method="post"
      action={concat("/content/edit/",
                     $object.id,
                     "/",
                     $edit_version)|ezurl}>



<table class="layout">
    <tr>
       <td>

        {include uri="design:content/edit_validation.tpl"}
        {include uri="design:content/edit_attribute.tpl"}
       
       
        <div class="buttonblock"  align="right">
        
         <input class="button"
                   type="submit" 
                   name="DiscardButton" 
                   value="Annular/retour liste" />
                   
   <form method="post"
      action={"espace_annonceurs/mini_site/modele_site"|ezurl}>
        
            <input class="defaultbutton"
                   type="submit"
                   name="PublishButton"
                   value="Valider" />
     </form>
  				               
            <input type="hidden" 
                   name="MainNodeID" 
                   value="{$main_node_id}" />
        </div>
    </td></tr>
</table>
</form>

As you can see, I try to add one more line as follows:

<form method="post"
      action={"espace_annonceurs/mini_site/modele_site"|ezurl}>
.......
</form>

It is because, I want to redirect the link means as any guest (after filling the edited form) click on button "Valid" with the validation of data he reach the link which I had suggested in the second code i.e; ../espace_annonceurs/mini_site/modele_site

But, I could not successed to achieve this,
Any other change if you can suggest,
Thanks