Jump to content

Form Problem


raptorman

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

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.