/    Sign up×
Community /Pin to ProfileBookmark

Tricky Web-Development

Ok, so what I want to do is have a radio button with the option of bill me, and Credit Card. What I want to do is if the user clicks on bill me, the appropriate form with text boxes would appear, the same thing in the credit card area too, with another check box in the bottom that says “I will call with my credit card info” to be optional. If y’all can redirect me to a website with the tutorials on how to do this, it would be great.

Thanks in advance for those of you willing to help me πŸ™‚

to post a comment
Full-stack Developer

7 Comments(s) ↴

Copy linkTweet thisAlerts:
@RJhawkesJan 27.2011 β€”Β google ''HTML and PHP Forms''
Copy linkTweet thisAlerts:
@CasperGeminiauthorJan 28.2011 β€”Β Tried that, no luck. :-(
Copy linkTweet thisAlerts:
@tirnaJan 28.2011 β€”Β I find it hard to believe you had no luck. What keywords did you use in your google search?
Copy linkTweet thisAlerts:
@CasperGeminiauthorJan 28.2011 β€”Β I used several:

CSS Form Tricks

Radio Button Form Tricks

HTML CSS Form Tricks of the Trade

PHP Form Tricks

Basically everything I could think of.
Copy linkTweet thisAlerts:
@tirnaJan 28.2011 β€”Β ok, try the w3schools forms tutorials as a starting point. Have a go at building the form you need. You might have to work through some of their other tutorials as well. If you get stuck, post your code and we can try to help you get it working.
Copy linkTweet thisAlerts:
@CasperGeminiauthorFeb 01.2011 β€”Β I tried that but I think it's a more of an advanced kind of function.
Copy linkTweet thisAlerts:
@tirnaFeb 02.2011 β€”Β I tried that but I think it's a more of an advanced kind of function.[/quote]

It doesn't have to be. All you need is a set of radio butons that send the value for that button to a function which then displays the appropriate form for the sent value.

Post the code you have so far.
Γ—

Success!

Help @CasperGemini spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 5.18,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...