Jump to content

Recommended Posts

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 how can help.

 

Dave

 

 

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

Well I think what your saying is you need to know the value of what they are choosing?

 

I would suggest an preset array for example

<?
$membershipcost= array('regular'=>'10.00','regularpub'=>'20.00');
?>

 

and the just cross reference their choice with that to get the price

 

<?
$membershiptype = $_POST['membershiptype'];

if(!$membershipcost[$membershiptype]){
    echo $membershipcost[$membershiptype];
}
?>

Link to comment
https://forums.phpfreaks.com/topic/177959-form-problem/#findComment-943052
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.