PDA

View Full Version : Pass details to ClientExec?



eean
07-12-2005, 06:43 PM
We currently use ClientExec, which handles our billing for hosting and domains.

What Ive been trying to do is use EP-Dev Whois to pass the domain information to ClientExec, so that when a domain is available and they click order, it goes to the ClientExec order page, with the domain they have entered.

There is a discussion on using a standard form for this on the CE Talk (http://www.ce-talk.com/showthread.php?t=27&page=2&pp=10&highlight=domain+search) forums.

Is there a way to do this?

Patrick
07-12-2005, 09:57 PM
Have you tried the solutions listed on that page?

You have a couple of options in getting the values (step, clienttype, currency, etc) to the script.

Your first option is to add those values into a URL in the templates configuration of the EP-Dev Whois script. This may or may not work, as I do not know whether ClientExec looks at only POST variables or if it examines both POST and GET (If you put them in a link, they would be GET).

For example, something like that would mean that you edit your domain available template in the ep-dev whois admin panel to look like:

<a href="http://www.[domain-name]/[clientexec-folder]/signup.php?step=0&currency=sadfds

And continue on for each of the <form type="hidden"> elements listed in the link you posted.

That may or may not work (depends how smart ClientExec is).

Your second option would be to modify the available domains template in ep-dev whois admin panel to use forms for each link. For example:



<form method="POST" action="http://www.[domain-name]/[clientexec-folder]/signup.php" name="step0[[EXT]]">
<input type="hidden" name="step" value="0">
<input type="hidden" name="clienttype" value="">
<input type="hidden" name="currency" value="">
<a href="javascript: step0[[EXT]].submit();">Buy Now</a>
<input type="hidden" name="domain" value='[[DOMAIN]].[[EXT]]'>
<input type="hidden" value="check domain" >
</form>

Using the example that was listed on the forum thread that you linked to. ** Notice the [[EXT]] above so that each form buy now link is unique.

eean
07-13-2005, 04:56 PM
Thanks for that. I will give it a try tonight, and see if I can get it working :)