PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 21st, 2002, 12:30 AM
Scott Scott is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: NY, NY, USA
Posts: 1 Scott User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
makecheckboxes

Created on online form ..
Here is the form...
----------------------------
<?
session_start();

if (session_is_registered ("valid_user"))
{

echo"









<blockquote>
<blockquote>
<font size="-3" color="#666666">You are logged in as user <b><font color="#cc3300">$valid_user</font>.</b></font>
</blockquote>

<blockquote>
<blockquote>
<blockquote>
<blockquote>";
echo"
<table width="300" border="0" borderbgcolor="#000000">
<tr>
<td>";
echo"<form action="betasurveyresults.php" method="post">
<h3>General</h3>
1. What WWW server are you running? Version?<br>
<input type="checkbox"name="webserv" value="IIS 4.0">
IIS 4.0 2.
<br>
<input type="checkbox"name="webserv" value="IIS 5.0">
IIS 5.0 2.
<br>
<hr width=80 align ="left" color="#666666">
2.What Platform are you running?
<br>
<input type="checkbox"name="platform" value="WINNT">
WINNT
<br>
<input type="checkbox"name="platform" value="WIN 2000">
WIN2000
<br>
<hr width=80% align ="left" color="#666666">
3. What technology are you using for your Web presence?
<br>
<input type="checkbox"name="pagetechno" value="HTML">
HTML
<br>
<input type="checkbox"name="pagetechno" value="SHTML">
SHTML
<br>
<input type="checkbox"name="pagetechno" value="ASP">
ASP
<br>
<input type="checkbox"name="pagetechno" value="CFML">
CFML
<br>
<input type="checkbox"name="pagetechno" value="PHP">
PHP
<br>

<hr width=80% align ="left" color="#666666">
4. This service currently flows data and your entitlements into
an MSAccess of database. Would you like to see client store data
in another format?
<br>
<input type="checkbox"name="dbchoice" value="No">
No
<br>
<input type="checkbox"name="dbchoice" value="Yes MySql">
Yes-MySql
<br>
<input type="checkbox"name="dbchoice" value="Yes MSSQL">
Yes MSSQL
<br>
<input type="checkbox"name="dbchoice" value="Yes Oracle">
Yes Oracle
<br>



<hr width=80% align ="left" color="#666666">
<h3>Install Wizard</h3>
5. Was wizard easy and verbose? <br>
<input type="checkbox"name="installwiz" value="Yes">Yes<br>
<input type="checkbox"name="installwiz" value="No">N0 Exlpain<br>
<textarea name="" rows= "5" cols="50" value="$installwiz" >
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
6. Were the instructions contained in the .PDF file clear and verbose
?? Specifically near end on the install process which asks you to
create virtual directory called Multimedia add IUSR_ <hostname>access.<br>
<input type="checkbox"value="Yes" name="instruction">
Yes<br>
<input type="checkbox"name="instruction" value="No..">
No..Explain <br>
<textarea name="" rows="5" cols="50" value="instruction">
</textarea>
<h3>InfoClient DSDS (Service)</h3>
7. Are you able to start and stop the InfoClient Service from the
Services Window as well as the service tray? <br>
<input type="checkbox"name="serviceprocess" value="Yes">
Yes<br>
<input type="checkbox"name="serviceprocess" value="No..."> N0<br>
<textarea name="serviceprocess" rows="5" cols="50">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
8. Does the Event Viewer reflect the activity of the InfoClient
DSDS service when you start and stop it? <br>
<input type="checkbox"name="event" value="Yes">
Yes<br>
<input type="checkbox"name="event" value="No..">N0<br>
<textarea name="" rows="5" cols="50" value="$event">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
9. Does the service affect the performance of any of the other services
running on your machine? <br>
<input type="checkbox"name="symptom" value="No">
No 2.Yes<br>
<textarea name="" rows="5" cols="50"value="$symptom">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
10. Is this machine currently getting any other ***feeds? If so
what? <br>
<textarea name="" rows="5" cols="50" value="$otherserv">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
11. We ask that you open port 3107. This is the port the IDSK protocol
listens. Was it difficult for you to get this port open in your
firewall? Do you deal with a third party ISP??><br>
<input type="checkbox"name="portcall" value="No">
No<br>
<input type="checkbox"name="portcall" value="No">
Yes<br>
<textarea name="" rows="5" cols="50" value="$portcall">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
<h3>Page Creator</h3>
12. Was the interface easy to use? What changes would you make?<br>
<input type="checkbox"name="interface" value="Yes">
Yes<br>
<input type="checkbox"name="interface" value="No..">
N0<br>
<textarea name="" rows="5" cols="50" value="$interface">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
13. Where you able to create multiple Web sites with different locations?? <br>
<input type="checkbox"name="sitecluster" value="Yes">
Yes<br>
<input type="checkbox"name="sitecluster" value="Yes">
N0 <br>
<textarea name="" rows="5" cols="50">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
14. Which did you use? Generic Templates (.asp pages) or .html/shtml
pages with story templates?<br>
<input type="checkbox"name="pagetemp" value="Yes...generic .ASP ">
Generic .asp pages.<br>
<input type="checkbox"name="pagetemp" value="Yes...used includes ">
include schema /my .HTML/.SHTML<br>
<hr width=80% align ="left" color="#666666">
15. Were able to seamlessly integrate the
<input type="checkbox"name="intergrate" value="Yes">
template within your existing Web site?<br>
<input type="checkbox"name="intergrate" value="Yes">
Yes<br>
<input type="checkbox"name="intergrate" value="No">
N0 <br>
<textarea name="" rows="5" cols="50" value="$intergrate">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
16. Did you incorporate your own style sheets or did you use the
bundled styles within the Web creator?<br>
<input type="checkbox"name="stylesheet" value="Yes">
Yes<br>
<input type="checkbox"name="stylesheet" value="Yes">
N0<br>
<textarea name="" rows="5" cols="50" value="$stylesheet">
</textarea>
<br>
<hr width=80% align ="left" color="#666666">
17. Did you use the remote publishing feature of InfoClient?<br>
<input type="checkbox"name="remotepub" value="Yes-Upload to UNIXLinuxSolarisFreeBSD">
Yes-Upload to UNIX...(includes..Linux, Solaris, FreeBSD)<br>
<input type="checkbox"name="remotepub" value="Yes-Upload to WINNT">
Yes-Upload to WINNT.<br>
<hr width=80% align ="left" color="#666666">
18. Does your organization employ a hosting company to host your
Web presence? If yes ..what access level does your IT team have?
<br>
<input type="checkbox"name="isp" value="Yes-Our WebMaster and IT team have FTP access to our Web directory ">
Yes-Our WebMaster and IT team has have FTP access to our Web directory
<br>
<input type="checkbox"name="isp" value="Yes- Our WebMaster and IT team have FTP & cgi access as well
shell to Web servers. We can also create new directories symbolically link directories.">
Yes- Our WebMaster and IT team have FTP & cgi access as well shell
to Web servers. We can also create new directories symbolically
link directories
<input type="hidden" value="$id" name="id">
<input type="hidden" value="$custname" name="custname">
<input type="submit" value="Send">
</form>";
echo"

</td>

</tr>
</table>

<table width="300" border="0" borderbgcolor="#000000">
</table>

</blockquote>
</blockquote>
</blockquote><br>




";
echo"<blockquote>

<blockquote><blockquote><a href="logout.php">Log Out </a> | <a href="index_test_sat_return.php">Back to Index </a></blockquote></blockquote></blockquote>";

}
else
{
echo" You are not logged in.Go back to the <a href="interface_test_sat.php">login</a> page.";
}
?>



</blockquote></body></html>

..here is the output...

<?
session_start();

if (session_is_registered ("valid_user"))
{

echo"









<blockquote>








<blockquote>
<font size="-3" color="#666666">You are logged in as user <b><font color="#cc3300">$valid_user</font>.</b></font>
</blockquote>

<blockquote>
<blockquote>
<blockquote>
<blockquote>

<table width="300" border="0" borderbgcolor="#000000">
<tr>
<td><h3>General</h3>

1. What WWW server are you running? Version?<br>
<font color="#cc3300">$webserv</font><br> <hr width=80% align ="left" color="#666666">

2.What Platform are you running?<br>
<font color="#cc3300">$platform</font><br> <hr width=80% align ="left" color="#666666">
3. What technology are you using for your Web presence?<br> <hr width=80% align ="left" color="#666666">
<font color="#cc3300">$pagetechno</font><br>
<p>4. This service currently flows data and your entitlements into
an MSAccess of database. Would you like to see client store data
in another format? <br> <hr width=80% align ="left" color="#666666">
<font color="#cc3300">$dbchoice</font>
<h3>Install Wiza

rd</h3>
5. Was wizard easy and verbose? <br>
<font color="#cc3300">$installwiz</font><br> <hr width=80% align ="left" color="#666666">

6. Were the instructions contained in the .PDF file clear and verbose ??
Specifically near end on the install process which asks you to create
virtual directory called Multimedia add IUSR_ <hostname>access.<br>
<font color="#cc3300">$instruction</font>

<h3>InfoClient DSDS (Service)</h3>

7. Are you able to start and stop the InfoClient Service from the Services
Window as well as the service tray?<br>
<font color="#cc3300">$serviceprocess</font><br>
8. Does the **Event Viewer reflect the activity of the InfoClient DSDS service
when you start and stop it? <br>
<font color="#cc3300">$event</font> <br><hr width=80% align ="left" color="#666666">
9. Does the service affect the performance of any of the other services running on
your machine?<br>
<font color="#cc3300">$symptom</font> <br><hr width=80% align ="left" color="#666666">

10. Is this machine currently getting any other ***feeds? If so what?

<br>
<font color="#cc3300">$otherserv</font> <br><hr width=80% align ="left" color="#666666">
11. We ask that you open port 3107. This is the port the IDSK protocol listens. Was
it difficult for you to get this port open in your firewall? Do you deal with a
third party ISP??<br>
<font color="#cc3300">$portcall</font> <br><hr width=80% align ="left" color="#666666">
<h3>Page Creator</h3>

12. Was the interface easy to use? What changes would you make?<br>
<font color="#cc3300">$interface</font>
<br><hr width=80% align ="left" color="#666666">

13. Where you able to create multiple Web sites with different locations?? <br>
<font color="#cc3300">$sitecluster</font> <br><hr width=80% align ="left" color="#666666">

14. Which did you use? Generic Templates (.asp pages) or .html/shtml pages with
story templates?<br>
<font color="#cc3300">$pagetemp</font> <br><hr width=80% align ="left" color="#666666">
15. Were able to seamlessly integrate the template within your existing Web site?
<font color="#cc3300">$intergrate</font><br>


16. Did you incorporate your own style sheets or did you use the bundled styles
within the Web creator?<br>
<font color="#cc3300">$stylesheet</font>
<br><hr width=80% align ="left" color="#666666">
17. Did you use the remote publishing feature of InfoClient?<br>
<font color="#cc3300">$remotepub</font> <br><hr width=80% align ="left" color="#666666">
18. Does your organization employ a hosting company to host your Web presence? If yes ..what access level does your IT team have?
<br>

<font color="#cc3300">$isp</font>


</td>
</tr>
</table>";
echo"



</blockquote>
</blockquote>
</blockquote><br>

<form action="http://stryper.mm.ap.org/index_test_sat_ret.php" method="post">
<input type="hidden" value="$id" name="id">
<input type="hidden" value="$custname" name="custname"><br>

<input type="submit" value="Send">

</form>";
echo"<blockquote><blockquote><blockquote><a href="logout.php">Log Out </a> | <a href="index_test_sat_return.php">Back to Index </a></blockquote></blockquote></blockquote>";

}
else
{
echo" You are not logged in.Go back to the <a href="interface_test_sat.php">login</a> page.";
}
?>



</blockquote></body></html>

The problem is that I'm trying to have multiple values returned. This is why I'm using checkboxes rather then radio buttons.

How can I do this???

Arrays???


Reply With Quote
  #2  
Old April 21st, 2002, 04:34 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: makecheckboxes

Well, I just kinda browsed through your code. If I catch your drift, you want to make checkboxes and return anything that they check. Easy enough. You would use an array just as you thought....

let's say you have a form that has these elements:

<INPUT type="checkbox" name="mystuff[]" value="aaa">
<INPUT type="checkbox" name="mystuff[]" value="bbb">
<INPUT type="checkbox" name="mystuff[]" value="ccdf">

and that form was submitted via the post method to a php script. You could access that array via:

echo $_POST[mystuff][0];

or something like:

foreach($_POST[mystuff] as $value) {
echo "$value<<BR>n";
}

Hope that helps...


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > makecheckboxes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek