JackRabbit Posted November 25, 2014 Share Posted November 25, 2014 I'm trying to make the homepage of my site recognize smarty values so I can pass the tld and sld through the URL to the form on the next page. The home page is not in the whmcs directory but in the wordpress directory under my home directory. this is the code I'm trying to use on my homepage at jackrabbit.host : <script type="text/javascript" src="http://www.jackrabbit.host/whmcs/includes/jscript/jqueryui.js"></script> <script type="text/javascript" src="http://www.jackrabbit.host/whmcs/templates/orderforms/slider/js/main.js"></script> <div id="action" class="clearfix box padding-box"> <form action="http://www.jackrabbit.host/high-speed-hosting/whmcsportal/cart.php/?sld={$sld}&tld={$tld}&a=add&pid=1" method="post"> <input type="hidden" name="direct" value="true"/> www.<input type="text" name="sld" size="20" placeholder="Choose a new domain"/></div> <select name="tld"> <option>.com</option> <option>.net</option> </select> </div></div> <input type="submit" value="Go!"/> </form> </div><!-- end #action --> in the url, you can see the sld and tld smarty values that need to be passed to the next page so the form will be pre filled so the user doesn't have to enter the domain again but I can't figure out how to get the smarty values to be recognized on the home page. What do I need to add to make this url work? I've come across a few threads with similar unanswered questions. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 25, 2014 Share Posted November 25, 2014 what happens if you don't add sld and tld to your URL? it should work without it as long as you use the sld and tld variables in your initial form... so change your form cart link to just... <form action="http://www.jackrabbit.host/high-speed-hosting/whmcsportal/cart.php?a=add&pid=1" method="post"> it should pass the sld & tld variables to your cart form automatically. 0 Quote Link to comment Share on other sites More sharing options...
JackRabbit Posted November 26, 2014 Author Share Posted November 26, 2014 so it does... Good grief I was complicating things. Thank you Brian! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.