Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Combining Clientarea details pages

$
0
0
Hi Guys,

I'm making a custom template to fit with my site and I want to combine all the client area details pages: My details, sub-contacts, add contact, change password and security settings). These are fairly lightweight and could all be on one page which would also enable me to use the kind of mobile-compatible layout i want to have.

So far it's easy to include them all on one page in the My Details template. For example to show the sub-contacts page I'm using:
{include file="$template/clientareacontacts.tpl"}

However, a problem arises when one of the forms is submitted, as the action on each one is set to itself. For example:
{$smarty.server.PHP_SELF}?action=contacts
So it redirects to that page upon submission. If i change the action to point at my details the form isn't submitted and doesn't work.

Can anyone think of a way round this?

Thanks

Viewing all articles
Browse latest Browse all 13458

Trending Articles