Hello everyone. Um, I have been away from web developent for ages and trying to get back into it, but I feel like an 80 year old person trying to learn again so pardon the dumb questions!
I am working on a site that sells various subscription plans, and I would like to create a landing page that has three “cards” (i.e. rectangular boxes) along side each other. Sort of like if you had three poker cards next to each other.
In each rectangle will be details about the particular plan like this…
Gold Plan
$30/mth
Includes:
- Feature 1
- Feature 2
- Feature 3
- and so on...
I feel like such a dummy, that even doing the HTML to create these cards will likely take me all weekend?!
Anyway, what I would like to figure out how to do is make it so when a person clicks on one of those cards it is “selectable” (is that even a word?!) and I can capture that and know, for instance, that they want to purchase the “Gold Plan”.
Does that makes sense?
Normally, on an HTML form you would use something like a radio button to capture which option a person wants, but some examples I have seen online for newspapers and magazines use the above approach instead.
I think it would be easy and look better if someone could just click on an image/card instead of having to click on a checkbox/radio button/form control.
If I can get the front-end to capture what they want, then I can use PHP to process things from there.
Oh, by the way, I would prefer to avoid using anything related to javascript right now. Maybe later on, but for now i want to keep things simple.
I haven’t eaten all day, so maybe I’m not making the most sense.
Let me try and explain again…
I am looking to create a single web page that is a combination of a product page and a checkout page. I am doing this because in my particualr case, I have read that if you make users navigate too much they might abandon their cart.
So at the top of my web page, I will have 3 choices for which plan a person wants to buy.
Then beneath that top section, I will have fields where they enter in an email address, password and payment details. Then finally a “Process Order” button.
So the nifty cards you created for me are really part of the data entry form so to speak.
When a person clicks on a given card, that can be seen as them clicking on an “Add to Cart” button.
I’m not sure if I have to add a form button to each of those cards to make things behave how I want, or if I can just make the cards “selectable” themselves?
Not sure if i am making any sense?
Also not entirely sur ethe best way to accomplish my end goal, so feel free to make suggestions!
Pardon me, but I haven’t done any of this in years so I’m not sure how it should work.
What do you mean by using the links for my PHP?
In the past, I was used to working with HTML forms and when they were submitted, my PHP would handle the $_POST data in some way.
Visually, it seemed more appealing if a user could click on the plan that they wanted, instead of having to dealing with radio buttons on an HTML form.
I had considerd having an “Add to Cart” button on each card, but that could be a problem if someone chose multiple plans which they probably don’t want.
i suppose what I need is something that behaves like a radio button where you can choose “Plan A” OR “Plan B” OR “Plan C” but not multiples.