Jump to content

URL based on radio button selection


lcws

Recommended Posts

hello everyone,

 

I hope someone can help with this... I have all of my hosting packages set up for different terms (1 month, 3 months, 6 months and 12, 24, 36) I know how to link to whmcs however, if someone selects radio button 1 month i want it to go to for example test1.html and radio button 3 months to test2.html and so on, on submit... thanks in advance for your help

 

Steve

Link to comment
Share on other sites

I think you would be looking at custom development, this isn't something WHMCS offers out of the box (to the best of my knowledge).

 

What would be on these pages? I'm curious to know how it would work, if they are ordering and they select 3 months for example they will be taken to another page? So you'll stop them from ordering?

Link to comment
Share on other sites

I am creating a form on my site (not WHMCS) to link to WHMCS I would like for example if the customer selects a 1 month term i want my form to redirect to https://secure.lakecitywebsolutions.com/whmcs/cart.php?a=add&pid=1&billingcycle=monthly&promocode=abc123

 

versus a 3 month plan might look something like this https://secure.lakecitywebsolutions.com/whmcs/cart.php?a=add&pid=1&billingcycle=quarterly&promocode=def321 and so on here is a copy of my current form code...

 

<tr align="left" valign="top">

<td align="left"><form id="form1" name="form1" method="post" action="https://secure.lakecitywebsolutions.com/whmcs/cart.php?a=add&pid=1">

<span style="color: #666"></span>

<p style="color: #F90; text-align: center;">Select Your Term:</p>

<table width="294">

<tr>

<td width="136" style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="1m" id="SLStarterHosting_0" />

1 Month</label></td>

<td width="146" align="left" style="font-size: small; color: #000;">$9.99/month</td>

</tr>

<tr>

<td style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="3m" id="SLStarterHosting_1" />

3 Months</label></td>

<td width="146" align="left" style="font-size: small"><span style="font-size: small; color: #000;">$9.49/month (save 5%)</span></td>

</tr>

<tr>

<td style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="6m" id="SLStarterHosting_2" />

6 Months</label></td>

<td width="146" align="left" style="font-size: small"><span style="font-size: small; color: #000;">$9.49/month (save 5%)</span></td>

</tr>

<tr>

<td style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="12m" id="SLStarterHosting_3" />

12 Months</label></td>

<td width="146" align="left" style="font-size: small"><span style="font-size: small; color: #000;">$8.99/month (save 10%)</span></td>

</tr>

<tr>

<td style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="24m" id="SLStarterHosting_4" />

24 Months</label></td>

<td width="146" align="left" style="font-size: small"><span style="font-size: small; color: #000;">$7.99/month (save 20%)</span></td>

</tr>

<tr>

<td style="font-size: small"><label>

<input type="radio" name="SLStarterHosting" value="36m" id="SLStarterHosting_5" />

36 Months</label></td>

<td width="146" align="left" style="font-size: small"><span style="font-size: small; color: #000;">$6.99/month (save 30%)</span></td>

</tr>

</table>

<table width="300" border="0">

<tr>

<td align="center"><input name="imageField" type="image" id="imageField" form="form1" formmethod="POST" formtarget="_blank" src="Images/buy_now.png" /></td>

</tr>

</table>

<p style="color: #333"> </p>

</form></td>

<td> </td>

<td> </td>

<td> </td>

</tr>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated