Jump to content

eyegraphix

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by eyegraphix

  1. Hey all. I have a simple excel sheet where I want to freeze a row AND a column. From the attached picture, I want numbers 1-6 and Column1, Column2, and Column3 to remain fixed, but still be able to scroll through everything to the right of that column and below that row. I can get the row to be fixed but the column still moves, even though I've frozen the cell to the right and below where I want to freeze, according to the excel help. I know this must be easy. Please help, thanks! [attachment deleted by admin]
  2. Yes pentan. That's exactly what I'm trying to do. Your suggestion makes sense, but for some reason I'm getting the same result and the vote doesn't get into the database. I can echo'd the contents of $_SESSION[selected_radio] out at various points of the script, but once I try to echo it out past the line if ($action =="submitvote"){ , it doesn't work. Here's my updated code. <? session_start(); if (isset($_SESSION['valid_user'])) { include ("dbconnect.php"); $vote=$_POST['radiobutton']; $_SESSION[selected_radio] = $_POST['radiobutton']; $netid=$_SERVER['REMOTE_USER']; echo "You have selected to vote for $vote. If this is incorrect,<a href=\"index.php\"> click here </a> to go back else click <a href=\"70scluster.php?action=submitvote\"> here </a><br>"; $action=$_GET['action']; if ($action =="submitvote"){ mysql_query("INSERT INTO voting (username, cluster,vote) VALUES('$netid', '70s','$_SESSION[selected_radio]') ") or die(mysql_error($ echo "<input type='button' value='Click here to close this window and logout' onclick='self.close()'>"; } } ?>
  3. Yes you are correct, that's what my form looks like. And yes, I know perfectly well I can echo it's contents out. When I put something like echo $vote I get what's in it, but when I try to insert it into the database it's not there.
  4. Um, that didn't work either. Here's the updated code. <? session_start(); if (isset($_SESSION['valid_user'])) { include ("dbconnect.php"); $vote=$_POST['radiobutton']; $selected_radio = $_POST[$vote]; $netid=$_SERVER['REMOTE_USER']; echo "You have selected to vote for $vote. If this is incorrect,<a href=\"index.php\"> click here </a> to go back else click <a href=\"70scluster.php?action=submitvote\"> here </a><br>"; $action=$_GET['action']; if ($action =="submitvote"){ mysql_query("INSERT INTO voting (username, cluster,vote) VALUES('$netid', '70s','$selected_radio') ") or die(mysql_error()); echo "<input type='button' value='Click here to close this window and logout' onclick='self.close()'>"; } } ?>
  5. Hmm, that still doesn't work, plus I really don't want to echo the contents of that variable onto the page. I know there's got to be a simple way around this.
  6. I have problem that I'm sure is easy to solve. The problem is getting a certain post variable from a form into a database. I'm submitting all the variables into a mysql database, but one of the variables does not show up in the database ($vote). Why oh why do the contents of the $vote variable not get into the database? <? session_start(); if (isset($_SESSION['valid_user'])) { include ("dbconnect.php"); $vote=$_POST['radiobutton']; $netid=$_SERVER['REMOTE_USER']; echo "You have selected to vote for $vote. If this is incorrect,<a href=\"index.php\"> click here </a> to go back else click <a href=\"70scluster.php?action=submitvote\"> here </a><br>"; $action=$_GET['action']; if ($action =="submitvote"){ mysql_query("INSERT INTO voting (username, cluster,vote) VALUES('$netid', '70s','$vote') ") or die(mysql_error()); echo "<input type='button' value='Click here to close this window and logout' onclick='self.close()'>"; } } ?>
  7. Which is where exactly? I downloaded the source code and didn't find php_ldap.so anywhere.
  8. I've done that, but the extension isn't even in the folder. The extension folder according to my phpinfo() is /usr/lib/php5/20060613 but the extension isn't in there.
  9. Hello. Here's the deal. I'm using (sharing) a debian/linux server which has php 5.2.1 and apache 1.3.x already working and installed. The trouble is it does not have the ldap extension installed on it and since I'm a newbie at linux command line I can't figure out how to install it. I looked at the help file on http://us3.php.net/manual/en/install.unix.php which says i need to run the "./configure" command, then "make", and "make install" and php.net said I can run these commands without recompiling php, and all i need to do is restart apache after that and I'm good. My question is, where do I run these commands from?? Do I have to be inside the package? I can't even find where the php package is at. I thought it should be in the /usr/lib folder but I can't find it. Sorry for sounding like such a newb, I'm used to windows server's. I'd greatly appreciate some help.
  10. Hello all. I'm having trouble using the ldap module with php which runs on a linux server. I've run php on a windows server and I know that pretty much all you do is copy your .dll to the right folder, restart apache, and you're done. I uncommented out the "extension=php_ldap.so" in my php.ini file, but the module isn't even in the extension directory folder (/usr/lib/php5/20060613). Every help file I've read has been un-helpful and somehow I think you have to build the module. Can someone at least point me in the right direction? Thanks!
  11. Yeah I tried that........doing what you suggested brings me to the same dialog.
  12. I'm using Dreamweaver 8.0 and have about 3-4 sites defined that I connect to via FTP.  However, when I put in my login and password for these sites, dreamweaver does not save this info and I have to re-enter it when I re-open dreamweaver and want to connect to my sites. I'm checking the "save" checkbox but this still does not work. Anyone have any ideas why this is?
  13. I recently did my entire layout using divs and style sheets, like everyone recommends. I have a template for my site and the stuff that changes goes in a #content div. My question is, now that the site is laid out with style sheets, does it make a difference if I throw a few tables inside that #content div for my content or should you continue to stick with divs absolutely? Just wondering as a general rule....what do you people do?
  14. Fixed the problem myself, just a small bug....please mark as solved.
  15. I recently got off my ass and "relaid" my website using style sheets and XHTML transitional pages. I validated both my css and my xhtml but then I opened up IE7 and the page looks horrible, however great in Firefox 2.0. Here's the link: www.eyegraphix.net . The sidebar and shoutbox do not show up at all which are in the #left div but no matter what I do I cannot even get this stuff to show up. Any help or suggestions? Much appreciation. [code]#left { position:absolute; left:0; top:286px; bottom:50px; width:212px; overflow:auto; background-repeat:repeat-y; background-color: #000000; background-image: url(images/sideback.gif); height: 100%; }[/code] And finally the entire css code [code]/* CSS Document */ <style type="text/css"> html { height:100%; max-height:100%; padding:0; margin:0; border:0; background:#FFFFFF; font-size:76%; font-family:Arial, Helvetica, sans-serif; /* hide overflow:hidden from IE5/Mac */ overflow: hidden; color: #FFFFFF;/* */ } hr { border: thin dotted #CCCCCC; } body { height:100%; max-height:100%; overflow:hidden; padding:0; margin:0; border:0; background-color: #333; } h1 { font-family: Arial, Helvetica, sans-serif; font-size: 24px; color: #FFFF00; } #content { overflow:auto; position:absolute; z-index:3; top:286px; bottom:50px; left:230px; right:0px; background-color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF; padding-right: 250px; } * html #content { top:0; left:0; right:0; bottom:0; height:100%; max-height:100%; width:100%; overflow:auto; position:absolute; z-index:3; border-top:100px solid #fff; border-bottom:50px solid #fff; border-left:200px solid #fff; background-color: #333333; } #head { position:absolute; margin:0; top:0; left:0; display:block; width:100%; height:286px; background-position:0 0; background-repeat:repeat-x; font-size:4em; z-index:5; overflow:hidden; color:#fff; background-color: #000000; background-image: url(images/backtop.gif); } #foot { position:absolute; margin:0; bottom:0; left:0; display:block; width:100%; height:20px; font-size:12px; z-index:5; overflow:hidden; background:rgb(76,76,76); color:#FFFFFF; border-top-width: thin; border-top-style: dashed; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: #000000; font-family: Arial, Helvetica, sans-serif; text-align: center; } #left { position:absolute; left:0; top:286px; bottom:50px; width:212px; overflow:auto; background-repeat:repeat-y; background-color: #000000; background-image: url(images/sideback.gif); height: 100%; } * html #left {height:100%; top:0; bottom:0; border-top:100px solid #fff; border-bottom:50px solid #fff; color:#fff;} #content p {padding:10px;} .bold {font-size:1.2em; font-weight:bold;} dd {display:none;} #nav { display: block; float: none; height: 0px; margin: 0; padding: 0; } #nav ul, #nav li { list-style-type: none; padding: 3px; float: none; } #nav a, #nav a:link { background: #333333; border-left: 5px solid #C6C600; color: #FFFFFF; display: block; font: bold 10px/22px verdana, arial, sans-serif; text-decoration: none; border-top: 1px dotted #C6C600; border-right: 1px dotted #C6C600; border-bottom: 1px dotted #C6C600; position: static; width: 85%; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 15px; padding-top: 2px; padding-right: 3px; padding-bottom: 2px; padding-left: 3px; } #nav a:hover { background: #FFFF00; color: #000000; border-top: 1px dotted #C6C600; border-right: 1px dotted #C6C600; border-bottom: 1px dotted #C6C600; text-indent: 10px; } #nav a.active, #nav a:link.active, #nav a:hover.active { background: #fff; border: 1px solid #520; border-left: 1px solid #520; color: #000; } #shout { position: absolute; top: 266px; left: 25px; } a:link { color: #FFFF00; font-family: Arial, Helvetica, sans-serif; font-size: 20px; } a:visited { color:#FFFF00; font-size: 20px; } a:hover {color:#FFFF99;} body { margin:0px; font-size:100%; text-align:left; } .xsnazzy h1, .zsnazzy h1 {margin:0; font-size:1.2em; padding:0 10px 5px 10px; border-bottom:1px solid #444;} .xsnazzy p, .zsnazzy p { margin:0; padding:5px 10px; font-size:10px;} .xsnazzy { background: transparent; width:240px; float:right; position: absolute; margin: 0px; } .xtop, .xbottom {display:block; background:transparent; font-size:1px;} .xb1, .xb2, .xb3, .xb4 {display:block; overflow:hidden;} .xb1, .xb2, .xb3 {height:1px;} .xb2, .xb3, .xb4 {background:#fff; border-left:1px solid #444; border-right:1px solid #444;} .xb1 {margin:0 5px; background:#444;} .xb2 {margin:0 3px; border-width:0 2px;} .xb3 {margin:0 2px;} .xb4 {height:2px; margin:0 1px;} .xboxcontent {display:block; border:0 solid #444; border-width:0 1px; height:auto;} * html .xboxcontent {height:1px;} .color_a {background:#c9ba65; color:#fff;} .color_b {background:#d4d8bd; color:#000;} .color_c {background:#758279; color:#fff;} .color_d {background:#b2ab9b; color:#000;} #sbox { border-width: 0 0 0 0; border-color: #FFFF00; border-style: dotted; width: 170px; } .textbox { border-width: 0; font-size: 9px; color: #D5D500; font-style: normal; font-family: Tahoma, Arial; text-decoration: none; background-color: #333333; } </style> [/code]
  16. Yes I had restarted the apache server. Actually I just removed everything and installed wamp instead, everything works fine so I'm just gonna stick with that. Thanks for the help.
  17. I have PHP 5.1.4, Apache 2.0.52, and MySQL 4.0.23 running on my local machine with Windows XP. PHP works fine but I can't get it to work with mysql. Here's my php.ini file. The extension directory has been set. ; Directory in which the loadable extensions (modules) reside. extension_dir = C:\php\ext I've uncommented both php_mysql.dll and php_mysqli.dll extension=php_mysql.dll extension=php_mysqli.dll All the modules are in the ext directory since I extracted all of them from the binary installation. I also put the libmysql.dll in the C:\windows folder. PHP is also looking at the correct php.ini file which is in my C:\windows folder and the configuration file path(php.ini) says C:\windows. The code Im using to test is just [code]<?php $db=mysqli_connect('localhost','blah','blah'); ?>[/code] and the error i get is "Fatal error: Call to undefined function mysqli_connect() in C:\Documents and Settings\Andrew\My Documents\Eyegraphix\comments2.php on line 2" I've tried everything I can think of and I've looked through past topics here. Someone please help me. Thanks!
  18. Hey willpower, great code but the problem is that only part of $mailContent needs to be formatted in html. I suppose I could rewrite the whole $mailContent variable to be in html, but I really don't want to do that unless I have to. What I tried, was put all the content that needs to be html formatted in a variable called $html , then I just conctated that to the $mailContent variable. All the information is sent when e-mailed, but the content that's not html is not formatted right. Hope this makes sense. The relevant code is below. [code] $html=<<<HTML_OUTPUT <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /> <title>Untitled Document</title> </head> <body> <table width='100%' border='0'>   <tr>     <td>General Chemistry </td>     <td>".$gchem1."</td>     <td>".$gchem2."</td>   </tr>   <tr>     <td>Physical Chemistry </td>     <td>".$pchem1."</td>     <td>".$pchem1."</td>   </tr>   <tr>     <td>Analytical Chemistry</td>     <td>".$achem1."</td>     <td>".$achem1."</td>   </tr>   <tr>     <td>Biochemistry</td>     <td>".$bchem1."</td>     <td>".$bchem1."</td>   </tr>   <tr>     <td>Organic Chemistry</td>     <td>".$ochem1."</td>     <td>".$ochem1."</td>   </tr>   <tr>     <td>Physics</td>     <td>".$phy1."</td>     <td>".$phy2."</td>   </tr>   <tr>     <td>Calculus</td>     <td>".$calc1."</td>     <td>".$calc2."</td>   </tr>   <tr>     <td>Other Science </td>     <td rowspan="2">".$oscia1."</td>     <td rowspan="2">".$oscia2."</td>   </tr>   <tr>     <td>".$oscia."</td>   </tr>   <tr>     <td>Other Science </td>     <td rowspan='2'>".$oscib1."</td>     <td rowspan='2'>".$oscib2."</td>   </tr>   <tr>     <td>".$oscib."</td>   </tr> </table> </body> </html> HTML_OUTPUT; $mailContent="Name:".$fname." ".$lname." "."sent the following preapplication materials \n\n"            ."Name: ".$fname." ".$lname.": I am ".$gender."\n"            ."Address: ".$address."\n"            ."Telephone: ".$telephone."\n"            ."E-mail: ".$email."\n"            ."Country of Citizenship: ".$country."\n"            ."Degree sought: ".$dgresot."\n\n"                        ."College of University \n"                           ."Name and Location: \n"                        .$c1."\n"                        ."Dates attended: \n"                        .$c1dts."\n"                        ."Major: \n"                        .$c1mj."\n"                        ."Degree: \n"                        .$c1dgre."\n"                        ."Deg. Date: \n"                        .$c1ddt."\n"                        ."GPA: \n"                        .$c1gpa."\n\n"                    ."College of University 2 \n"                        ."Name and Location: \n"                        .$c2."\n"                        ."Dates attended: \n"                        .$c2dts."\n"                        ."Major: \n"                        .$c2mj."\n"                        ."Degree: \n"                        .$c2dgre."\n"                        ."Deg. Date: \n"                        .$c2ddt."\n"                        ."GPA: \n"                        .$c2gpa."\n\n"                        ."College of University 3 \n"                        ."Name and Location: \n"                        .$c3."\n"                        ."Dates attended \n"                        .$c3dts."\n"                        ."Major: \n"                        .$c3mj."\n"                        ."Degree: \n"                        .$c3dgre."\n"                        ."Deg. Date: \n"                        .$c3ddt."\n"                        ."GPA: \n"                        .$c3gpa."\n".                        $html. "GRE Scores \n". "Verbal        ".$grev." ".$grevper."\n". "Quant.        ".$grq." ".$greqper."\n". "Analy.        ".$grea." ".$greaper."\n". "Total        ".$total."\n". "Subject GRE: Subject: ".$gresub."  Score: ".$gresubscore."   ".$gresubper."\n". "TOEFL Score: ".$toefl."\n". "Areas of Research interest: ".$interest."\n". "Publications: ".$pubs."\n". "Additional Information: ".$addinfo."\n". "Server protocol: ".$remotehost."\n". "Remote IP address: ".$ip."\n"; //End of $mailcontent $headers = "From: xxx  \r\n"; $headers .="Reply-to: xxx  \r\n"; $headers .="MIME-Version: 1.0\r\n"; $boundary = uniqid ("something"); $headers .="Content-Type: multipart/alternative" . "; boundary = $boundary\r\n\r\n"; $headers .="This is a MIME encoded message. \r\n\r\n"; $headers .="--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" ."Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode("$textversion")); $headers .="--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode("$mailContent")); $email2="asiegrist@gmail.com"; $subject="Preapplication (Forms submission)"; if (!$lname) {        echo "<b>Thank you</b> <br> You have not provided your last/family name. All requested information must be submitted        or we will not be able to properly process your preapplication";        } else {     mail($email2, $subject, $mailContent, $headers);     echo "Thank you for submitting a preapplication. Our graduate committee will review the materials and advise you of their decision.";     } [/code]
  19. Here's the mail content, what is sent off to the user. [code]$mailContent="Name:".$fname." ".$lname." "."sent the following preapplication materials \n\n"            ."Name: ".$fname." ".$lname.": I am ".$gender."\n"            ."Address: ".$address."\n"            ."Telephone: ".$telephone."\n"            ."E-mail: ".$email."\n"            ."Country of Citizenship: ".$country."\n"            ."Degree sought ".$degreesought."\n\n"                        ."College of University \n"                           ."Name and Location \n"                        .$c1."\n"                        ."Dates attended \n"                        .$c1dts."\n"                        ."Major \n"                        .$clmj."\n"                        ."Degree \n"                        .$cldgre."\n"                        ."Deg. Date \n"                        .$clddt."\n"                        ."GPA \n"                        .$clgpa."\n\n"                    ."College of University 2 \n"                        ."Name and Location \n"                        .$c2."\n"                        ."Dates attended \n"                        .$c2dts."\n"                        ."Major \n"                        .$c2mj."\n"                        ."Degree \n"                        .$c2dgre."\n"                        ."Deg. Date \n"                        .$c2ddt."\n"                        ."GPA \n"                        .$c2gpa."\n\n"                        ."College of University 3 \n"                        ."Name and Location \n"                        .$c3."\n"                        ."Dates attended \n"                        .$c3dts."\n"                        ."Major \n"                        .$c3mj."\n"                        ."Degree \n"                        .$c3dgre."\n"                        ."Deg. Date \n"                        .$c3ddt."\n"                        ."GPA \n"                        .$c3gpa."\n\n"                        ." <html><table width='100%' border='0'>   <tr>     <td>Course Type </td>     <td>Sem. 1 </td>     <td>Sem. 2 </td>   </tr>   <tr>     <td>General Chemistry </td>     <td>".$gchem1."</td>     <td>".$gchem2."</td>   </tr>   <tr>     <td>Physical Chemistry </td>     <td>".$pchem1."</td>     <td>".$pchem2."</td>   </tr>   <tr>     <td>Analytical Chemistry </td>     <td>".$achem1."</td>     <td>".$achem2."</td>   </tr>   <tr>     <td>Biochemistry</td>     <td>".$bchem1."</td>     <td>".$bchem1."</td>   </tr>   <tr>     <td>Organic Chemistry </td>     <td>".$gchem1."</td>     <td>".$gchem1."</td>   </tr>   <tr>     <td>Physics</td>     <td>".$phy1."</td>     <td>".$phy2."</td>   </tr>   <tr>     <td>Calculus</td>     <td>".$calc1."</td>     <td>".$calc2."</td>   </tr>   <tr>     <td>Other Science </td>     <td rowspan='2'>".$oscia1."</td>     <td rowspan='2'>".$oscia2."</td>   </tr>   <tr>     <td>".$oscia."</td>   </tr>   <tr>     <td>Other Science </td>     <td rowspan='2'>".$oscib1."</td>     <td rowspan='2'>".$oscib2."</td>   </tr>   <tr>     <td>".oscib."</td>   </tr> </table> </body> </html> "."\n"; [/code]
  20. I'm e-mailing the contents of a form using the mail function. Some of the content e-mailed needs to be organized like in a table so that it looks nice when opened up. I tried doing this, but in the e-mail all I see is the html code. I know this must be easy, but, help?
  21. Thanks. That worked great obsidian.
  22. My personal site I did in css awhile ago which is pretty simple. I have a #wrapper div, then smaller divs inside of it. For some reason in Firefox the height doesn't take up the whole page even though the div height is set at 100%. It looks fine in Internet Explorer, which is the way i'd like it to look in firefox. Any thoughts?
  23. I really need help with this. Someone? Please?
  24. Link: http://www.kjly.com/optiontest.php I have a form and at the very bottom of it where it asks "Would you like to submit money now?" I have a radio button and when it is checked "yes" I'm using the dreamweaver behavior "show=hide layers" to reveal a hidden layer. All I want is for when the layer is shown, that the text and submit button move down when the layer is revealed. You can see now that it completely covers the button and text when the layer is revealed. I've tried a few things with no success. How can I accomplish this??
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.