05-12-2009, 08:40 PM
|
#10 (permalink)
|
|
The Contributor
Join Date: May 2009
Location: West Midlands
Posts: 26
Thanks: 2
|
Sorry...
Thanks for your patience :)
HTML Code:
<form action="send3.php" method="post">
<fieldset><legend>Quick Quote Questionnaire</legend>
<ol>
<li>Which service would you need?</li>
<p><input type="radio" name="service" value="create"/> Create a new website</p>
<p><input type="radio" name="service" value="update"/> Update my old website</p>
<p><input type="radio" name="service" value="maintain"/> Maintain my website</p>
<li>What is your main reason for having a website?</li>
<?php # Script 1.0 Questionnaire Processing send.php
//create array and print radios for reason
$reason = array(
'a' => 'To create an online presence',
'b' => 'To make your business information available online',
'c' => 'To increase revenue by selling / promoting online',
'd' => 'To create a 24 hour service',
'e' => 'Low cost market research',
'f' => 'Promote ahead of businesses NOT online',
'g' => 'To reduce support, customer service, printing and mailing costs',
'h' => 'To reach a large audience',
'i' => 'To build a community or network',
'j' => 'To offer a fast and easily accessed source of information'
);
foreach ($reason as $key => $value) {
echo "<p><input type=\"radio\" name=\"reason\" value=\"$value\" /> $value</p>";
}
?>
<li>What is your target audience?</li>
<p><textarea rows="4" columns="20" maxlength="30" name="target" ></textarea></p>
<li>How many pages do you think your website will need?</li>
<p><input type="text" maxlength="4" name="pages" /></p>
<li>Which of the following is most important for your website?</li>
<?php
//create array and print radios for important
$important = array(
'a' => 'Looking good',
'b' => 'Working in a wide range of browsers',
'c' => 'Google ranking',
'd' => 'Accurate content / frequent updates',
'e' => 'Improving your company\'s status /credibility',
'f' => 'Getting new customers',
'g' => 'Keeping old customers'
);
foreach ($important as $key => $value) {
echo "<p><input type=\"radio\" name=\"important\" value=\"$value\" /> $value</p>";
}
?>
<li>What features do you want on your website?
You can select several options from this list.</li>
<?php
//create array and print checkboxes for features
$features = array(
'a' => 'Contact form',
'b' => 'Private login area',
'c' => 'Questionnaire',
'd' => 'Custom images / logo',
'e' => 'A shopping cart',
'f' => 'A blog',
'g' => 'Photograph / image display',
'h' => 'Music / document / video clip integration',
'i' => 'A Forum'
);
foreach ($features as $key => $value) {
echo "<p><input type=\"checkbox\" name=\"features[]\" value=\"$value\" /> $value</p>";
}
?>
<li>Please use this section to mention anything else you want on your website or explain your website needs in more detail. </li>
<p><textarea rows="20" columns="40" maxlength="800" name="comments" value="comments"></textarea></p>
</ol>
<p>Please include your name, company and contact details below.</p>
<p>Name: <input type="text" maxlength="30" name="name" /> Company: <input type="text" maxlength="40" name="company" /></p>
<p>Address: </p>
<p><textarea rows="5" cols="20" maxlength="150" name="address"></textarea></p>
<p>Telephone: <input type="text" maxlength="30" name="phone" /> Email: <input type="text" maxlength="40" name="email" /></p>
<p>How would you like me to contact you?</p>
<p><input type="radio" name="contact" value="email"/> Email</p>
<p><input type="radio" name="contact" value="phone"/> Telephone</p>
<input type="submit" value="Send Questionnaire!"/>
</fieldset></form>
|
|
|