472,961 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 software developers and data experts.

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 1554
ronverdonk
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.
[php]
<?php
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";
exit;
}
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>
</select>
<br /><br /><input type="submit" value="submit request" />
</form>
<?php
}
?>
</body>
</html>
[/php]

Ronald
Oct 15 '07 #2

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

Similar topics

11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
1
by: Raghuram Banda | last post by:
Hi, Can any one help me, how to create a Radio button using DOM with default one option is selected Thanks in advance
6
by: skgolden | last post by:
My husband and I own a small temporary labor company and deal with 4 major clients (A,B,C & D), each of which has about 2 dozen units in our tristate area that we deal with (ie, Company A, units...
1
by: Hifni Shahzard | last post by:
Hi, I'm using VS.NET 2003, SQL Server 2000, Windows xp professional; My Question: Some of you might seen in some websites where it requests the Country in a dropdown. If the Country selected,...
2
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
4
by: j_macaroni | last post by:
I know you can start php -a and go into interactive mode. This works well exept you have to keep putting <?php code here ; bla blah code ; Couple of problems with this. 1) Exits php when you...
24
by: M O J O | last post by:
Hi, Instead of doing this.... Public Class Form1 Public Shared Sub CreateAndShow() Dim f As New Form1 f.Show() End Sub
3
by: beemomo | last post by:
I have two tables - 'Client' and 'Company', and two forms, 'Client' and 'Company', the relationship between two table is 1:many where a company can have one or more client but each of the client...
0
by: Hulm1 | last post by:
Within my Company form, I have a list of contacts in that company. I currently have a Contacts form where I use a combo box to look up the company. It would be better if I could simply have a...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.