Jump to content

BigAl75

Members
  • Content Count

    94
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BigAl75

  • Rank
    Newbie
  1. Same thing happens. Thanks for the help. I'm just going to link thumbnails to the video file and let them open in the viewers default video player.
  2. I don't really do a whole lot in Flash at all, so please bear with me. I have this as my code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="375" id="bubble-point" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="flw/bubble-point/bubble-point.swf"" /><param name="AutoStart" value="0"><param name="play" value="false" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flw/bubble-point/bubble-point.swf" play="false" loop="false" quality="high" bgcolor="#ffffff" width="500" height="375" name="bubble-point" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object> In every browser I've tried it in (Firefox, IE 6, 7, & 8, Opera, & Chrome), the video starts playing as soon as the page loads. I want the user to determine when the video plays. How do I do this?Thanks for the help.
  3. Did some more digging and found this: <script type="text/javascript"> google.load("jquery", "1.4.0"); google.setOnLoadCallback(function() { $("div > div.thumbnail").click(function() { if($(this).next().is(':hidden')) { $(this).next().fadeIn("slow"); } else { $(this).next().fadeOut("slow"); } }); $("div > div.fullsize").click(function(){ $(this).fadeOut("slow"); }); }); </script> Works wonderfully. Hope this helps someone else.
  4. I'm using JavaScript and jQuery to display hidden images on my page. When you click on the thumbnail, the image appears at the top of the page. To close the image, you need to click on the thumbnail again. My problem is, depending on how far down the visitor has scrolled on the page, the full size image sometimes covers the thumbnail. If a visitor can't figure out how to scroll the page to get to the thumbnail again, they won't be able to close the full size image without refreshing the page. Can someone help me figure out a way make the full size image close when it's clicked on? Or even a way to add a close link on it? I've tried stuff like lightbox and so on, but can't get them to work for one reason or another.Thanks, and here's my code.java script: <script type="text/javascript"> google.load("jquery", "1.2.6");</script><script type="text/javascript"> google.load("jquery", "1.4.0"); google.setOnLoadCallback(function() { $("div > div.thumbnail").click(function() { if($(this).next().is(':hidden')) { $(this).next().fadeIn("slow"); } else { $(this).next().fadeOut("slow"); } }); }); </script> CSS: div.imagehide { margin: 0;}div.imagehide div.thumbnail { padding: 5px; cursor: hand; cursor: pointer; width: 150px; float: left; margin: 0 10px;}div.imagehide div.fullsize { display: none; width: inherit; clear: both; padding: 10px; border: 1px solid black; background-color: white; float: left; text-align: center; position: fixed; top: 10px; left: 25%;} HTML <div id="1" class="imagehide"> <div class="thumbnail"><a><img src="images/cbpt/figure-1_th.jpg" alt="Figure 1" border="0" height="116" width="150"></a></div> <div class="fullsize"><img src="images/cbpt/figure-1.jpg" width="600" height="466" alt="figure 1" /></div></div> <div id="2" class="imagehide"> <div class="thumbnail"><a><img src="images/cbpt/figure-2_th.jpg" alt="Figure 2" border="0" height="108" width="150"></a></div> <div class="fullsize"><img src="images/cbpt/figure-2.jpg" width="600" height="433" alt="figure 2" /></div></div>
  5. I found this: if ((($_FILES["file"]["type"] == "image/gif")|| ($_FILES["file"]["type"] == "image/jpeg")|| ($_FILES["file"]["type"] == "image/pjpeg")) but what if I want to allow .pdf & .doc files. What would I put in place of the "image/ext". I'm guessing it's not "image/pdf".
  6. Thanks for the help guys. I took justsomeguy's suggestion and toyed around with the test_request.php and got this to work as well. if (empty($test)) { die ("You MUST select a test you want performed AND the number of those tests you want run. Please go back and try again."); } Thanks again for the help!
  7. One question - where do I put this part in the form? onsubmit='return validate_form(this)' Would it go in the code for the 'submit' button? Thanks again!
  8. Thanks for the help. I'll try it out and let you know how I make out with it.
  9. I have a test request form that is working fine. The problem comes when the customers do not select at least one test they want to have us run. I want to make it so selecting at least one of the fields is mandatory. Doesn't matter which one, just as long as one of them is selected so we can at least have an idea of what it is they want us to do.Here is the form:http://www.pmiapp.com/phpex/test_request_form.phpsAnd here is the script it is calling:http://www.pmiapp.com/phpex/test_request.phpsAny help would be much appreciated. I have an idea of what to do, but not with that many selection boxes and drop-down selections.
  10. BigAl75

    Php & Forms

    When people fill out information in the forms I have on my company's website and hit submit, the information is not being sent to our in-boxes like it should be. I'm confident that the php code I'm using is correct, but I was hoping someone here could look at it to make 100% certain it is before I get in another argument with our IT guy who claims it's my code that's the problem and not the mail server.Here's the code for the form: <form action="scripts/feedback.php" method="post" name="Feedback-Form" id="Feedback-Form"> <input type="hidden" name="formname" value="Feedback-Form" /> <!-- Name Information --> <div id="name"> Your Information:<br /> <div id="firstn"> Name:<br /> <input type="text" size="25" maxlength="100" name="name" /> </div> </div> <!-- End Name Info --> <!-- Start Company Information Forms --> <div class="company"> Company Name:<br /> <input type="text" size="25" maxlength="150" name="company" /> </div> <div class="company"> Phone #:<br /> <input type="text" size="40" maxlength="100" name="phone" /> </div> <div class="company"> Email:<br /> <input type="text" size="40" maxlength="100" name="email" /> </div> <!-- End Company Information Forms --> <!-- Begin More Info Options --> <div class="company4"> Please add comments here:<br /> <textarea name="comments" rows="8" cols="47"></textarea> </div> <!-- End More Info Options --> <!-- Submit/Reset buttons --> <div class="company3"> <label> <input name="Submit" type="submit" class="left" value="Submit" /> </label> <label> <input name="Reset" type="reset" class="right" value="Reset" /> </label> <p class="clear">Please only press the Submit button once. It may take a moment or two to submit your information.</p> </div> <!-- End Submit/Reset buttons --></form> and here's the feedback script it's calling: <?php$mailto = "marketingmanager@pmiapp.com" ;// $subject - set to the Subject line of the email, eg//$subject = "Feedback Form" ;$subject = "Feedback from Website" ;$formurl = "http://www.pmiapp.com/feedback.php" ;$errorurl = "http://www.pmiapp.com/error.html" ;$thankyouurl = "http://www.pmiapp.com/thankyou.html" ;$uself = 1;// -------------------- END OF CONFIGURABLE SECTION ---------------$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;$name = $_POST['name'] ;$company = $_POST['company'] ;$phone = $_POST['phone'] ;$email = $_POST['email'] ;$comments = $_POST['comments'] ;$http_referrer = getenv( "HTTP_REFERER" );if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ;}if (empty($name) || empty($email) || empty($comments)) { header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); header( "Location: $errorurl" ); exit ;}if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) { header( "Location: $errorurl" ); exit ;}if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments );}$messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n\n" . "Name of sender: $name\n\n". "Phone # of sender: $phone\n\n" . "Email of sender: $email\n\n" . "Company: $company\n\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ;mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );header( "Location: $thankyouurl" );exit ;?> I appreciate any help I can get with this.
  11. Success! Thanks for your help (and patience!!). I appreciate it.
  12. Here's the code I currently have for building the email. This code here only shows the LAST selected checkbox value. $mailto = 'MYEMAILADDRESS' ;// $subject - set to the Subject line of the email, eg//$subject = "Feedback Form" ;$subject = "PMI Product Support Form" ;$formurl = "PATHTOFORM" ;$errorurl = "error.html" ;$thankyouurl = "thankyou.html" ;$uself = 1;// -------------------- END OF CONFIGURABLE SECTION ---------------$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;$title = $_POST['title'] ;$fname = $_POST['firstname'] ;$mname = $_POST['middlename'] ;$lname = $_POST['lastname'] ;$company = $_POST['company'] ;$addyfirst = $_POST['address_first_line'];$addysecond = $_POST['address_second_line'];$city = $_POST['city'];$state = $_POST['state'];$zip = $_POST['zip'];$country = $_POST['country'];$phone = $_POST['phone'];$fax = $_POST['fax'];$email = $_POST['email'] ;$respond = $_POST['respond'];$instrument = $_POST['instrument_name'] ;$purchasemonth = $_POST['purchase_month'] ;$purchaseday = $_POST['purchase_day'] ;$purchaseyear = $_POST['purchase_year'] ;$model = $_POST['instrument_model_number'];$serial = $_POST['instrument_serial_number'];$control = $_POST['version_control_number'];$report = $_POST['version_report_number'];$samples = ""; if(isset($_POST['samples'])) { $samples = $_POST['samples']; $n = count($samples); $i = 0; while ($i < $n) { $samplestested = "{$samples[$i]}\r\n"; $i++; } }$other = $_POST['other'];$comments = $_POST['comments'] ;$http_referrer = getenv( "HTTP_REFERER" );if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ;}if (empty($fname) || empty($lname) || empty($email)) { header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" ); header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" ); header( "Cache-Control: no-cache, must-revalidate" ); header( "Pragma: no-cache" ); header( "Location: $errorurl" ); exit ;}if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) { header( "Location: $errorurl" ); exit ;}if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments );}$messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n\n" . "Title: $title\n\n" . "First Name of sender: $fname\n\n". "Middle Initial: $mname\n\n" . "Last Name: $lname\n\n" . "Company: $company\n\n" . "Address First Line: $addyfirst\n\n" . "Address Second Line: $addysecond\n\n" . "City: $city\n\n" . "State: $state\n\n" . "Zip Code: $zip\n\n" . "Country: $country\n\n" . "Phone: $phone\n\n" . "Fax: $fax\n\n" . "Email: $email\n\n" . "Please respond by: $respond\n\n" . "Instrument Name: $instrument\n\n" . "Purchase Date: \n\n" . " Month: $purchasemonth\n" . " Day: $purchaseday\n" . " Year: $purchaseyear\n\n" . "Instrument Model Number: $model\n\n" . "Instrument Serial Number: $serial\n\n" . "Version Control Number: $control\n\n" . "Version Report Number: $report\n\n" . "The samples tested are \r\n" . " $samplestested\n\n" . "Other samples type not listed: $other\n\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ;mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );header( "Location: $thankyouurl" );exit ;
  13. That code is to display it on the following page, isn't it? I need it send to my email, which is what the $messageproper is doing.I need to take a break from this for a bit. Thanks for your help. I'm sure I'll be back on it later.
  14. OK, I kind of have it working. I get everything sent to me, but when it comes to sending me the information from the array, I only get the first selection sent. (IE - if up, down, and through were selected, only up would be sent.)Here's what I have: .....$report = $_POST['version_report_number'];$comments = $_POST['comments'] ;$http_referrer = getenv( "HTTP_REFERER" );if(isset($_POST['samples'])) { $samples = $_POST['samples']; $n = count($samples); $i = 0; } and for displaying it in the email: "The samples tested are \r\n" . " $samples[$i]\n" . Those two give me only the first selection of all the checkboxes. If I have $samples = $_POST['samples[]']; I get nothing again.And I have stuff for the comments and so on in the code. I'm only posting the code relevant to the problem I'm having.
  15. OK, now I'm getting this error:Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRINGphp file code: $title = $_POST['title'] ;$fname = $_POST['firstname'] ;$mname = $_POST['middlename'] ;$lname = $_POST['lastname'] ;$company = $_POST['company'] ;$addyfirst = $_POST['address_first_line'];$addysecond = $_POST['address_second_line'];$city = $_POST['city'];$state = $_POST['state'];$zip = $_POST['zip'];$country = $_POST['country'];$phone = $_POST['phone'];$fax = $_POST['fax'];$email = $_POST['email'] ;$respond = $_POST['respond'];$instrument = $_POST['instrument_name'] ;$purchasemonth = $_POST['purchase_month'] ;$purchaseday = $_POST['purchase_day'] ;$purchaseyear = $_POST['purchase_year'] ;$model = $_POST['instrument_model_number'];$serial = $_POST['instrument_serial_number'];$control = $_POST['version_control_number'];$report = $_POST['version_report_number'];$comments = $_POST['comments'] ; php file email code: $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n\n" . "Title: $title\n\n" . "First Name of sender: $fname\n\n". "Middle Initial: $mname\n\n" . "Last Name: $lname\n\n" . "Company: $company\n\n" . "Address First Line: $addyfirst\n\n" . "Address Second Line: $addysecond\n\n" . "City: $city\n\n" . "State: $state\n\n" . "Zip Code: $zip\n\n" . "Country: $country\n\n" . "Phone: $phone\n\n" . "Fax: $fax\n\n" . "Email: $email\n\n" . "Please respond by: $respond\n\n" . "Instrument Name: $instrument\n\n" . "Purchase Date: \n\n" . " Month: $purchasemonth\n" . " Day: $purchaseday\n" . " Year: $purchaseyear\n\n" . "Instrument Model Number: $model\n\n" . "Instrument Serial Number: $serial\n\n" . "Version Control Number: $control\n\n" . "Version Report Number: $report\n\n" . "The samples tested are \n\n" . "$_POST['samples[]']" . I'm guessing I'm not putting that line of code in the correct location
×
×
  • Create New...