Jump to content

Form


raptorman

Recommended Posts

I am sorry I posted this first in the wrong topic area. I posted it under Joomla.

 

Hello,

 

This is being created for a membership website.

I was able to create the form we need, i.e.

 

Name_______________________ Address__________________

City________________________ State_____________________

Etc Etc.

 

There are 5 different types of membership i.e.

 

Regular $10.00 a year

Regular with publication $25.00 a year

Etc.

 

Tried the membership types in both a dropdown and radio buttons.

 

Now the problem, when a user checks the desired membership I can't figure out how to have it moved to another field with their selection (amount etc) so they can proceed to checkout.

 

We created the form with software we purchased breezingforms.

 

Thanks to anyone who can help.

 

Dave

 

Link to comment
https://forums.phpfreaks.com/topic/177960-form/
Share on other sites

I believe he wants it like WHCMS so when you pick a plan, it then in the same windom without releoading adds another dropdown form below asking them their pricing details like bi-monthly, annuaklly and such ... and yea thats Javascript not PHP but you can do it in PHP too i think ... not sure

Link to comment
https://forums.phpfreaks.com/topic/177960-form/#findComment-938311
Share on other sites

Thank you for your replies,

 

When the user would click on say a radio button 1 year no publication 25.00 this would update another field at the bottom of the page __________ Your total then they would be able check out.

 

Thanks again

 

It is hosted on a sandbox site right now.

Link to comment
https://forums.phpfreaks.com/topic/177960-form/#findComment-938314
Share on other sites

Raptorman, that means yes, this is javascript. I will go ahead and answer your question though.

 

Your field would look like this:

<script>

function updatePrice(val) {

document.blah.prc.value=val+5; // 5 shipping and handling or whatever.

}

<form name="blah">

<input type="radio" name="myVal[]" value="1" onClick="updatePrice(this.value);">

<input type="text" name="prc" readonly>

</form>

Link to comment
https://forums.phpfreaks.com/topic/177960-form/#findComment-938318
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.