470,564 Members | 2,453 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,564 developers. It's quick & easy.

trying to create an interactive form for my company

I searched here but could not find an answer so hopefully it hasn't been asked. I would like some direction to a site the helps explain what I am needing to do or provides me with some code help as I have not written any code as of yet because I don't know what I need to write:

I am creating a form for my company that allows the user to select from three different forms (i.e. and online "return on investment" calculator, and "online network support price estimate" and a "no obligation price estimate") while making the user enter an email address that we capture even if they do not fill out the other forms. So you would see three checkboxes for each of the options and a text field for the email. You enter your email, select from the checkboxes and when you click submit the server captures the email and sends the user to a custom page that includes the forms that they selected. I know that may not be written right but hopefully you understand what I mean. I some one could give me some guidance that would be much appreciated! I'm not looking for someone to write the code, but to help me to write the code so I understand what happens.
Oct 15 '07 #1
1 1498
4,258 Expert 4TB
Just to help you on our way, the following is a very small script that performs more or less as you would like. Now you have a start and can continue the coding yourself.
if (isset($_POST['email']) ) {
$email = strip_tags($_POST['email']);
$form = strip_tags($_POST['dropbox']);
echo "your e-mail address is: $email <br />";
echo "the selected entry is: $form";
else {
<form name="MyForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Your e-mail address:<br />
<input type="text" name="email" size="30" value="<?php echo (isset($_POST['email'])) ? $_POST['email'] : ""; ?>"><br /><br />

Select the application you require <br />
<select name='dropbox'>
<option value="Application calculator">Application calculator</option>
<option value="Return on investment">Return on investment</option>
<option value="Price estimate">Price estimate</option>
<br /><br /><input type="submit" value="submit request" />

Oct 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by James | last post: by
1 post views Thread by Raghuram Banda | last post: by
6 posts views Thread by skgolden | last post: by
1 post views Thread by Hifni Shahzard | last post: by
2 posts views Thread by WJ | last post: by
4 posts views Thread by j_macaroni | last post: by
24 posts views Thread by M O J O | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.