|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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??? |
|
#2
|
|||
|
|||
|
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... |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > makecheckboxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|