Jump to content

dumdumsareyum

Members
  • Posts

    97
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.slantgraphics.com

Profile Information

  • Gender
    Not Telling

dumdumsareyum's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi guys I have a question. I am using the php mail function to send an email from a website. This worked just fine prior (like, immediately prior) to having an ssl certificate installed with my hosting company. Now the mail function returns true (based on my code generating a success message if this condition is met), but no email ever arrives in my inbox. Do I have to change how I am sending the mail? It works the same way if i access the page via http or https. Thanks!
  2. Okay, I tried the test page and I'm still kind've having an issue...When I first load the page in my iphone it does not look fitted to a mobile page. A couple of times if I hit the login button and then go back the page appears fitted like a mobile page, but then if I reload the page it is scaled down again. This is so frustrating!
  3. Hello all, I need some major help I am trying to create a mobile site for an existing website. It is used for a company workorder system and not on the WWW or I would post a link to it. When I use the meta tag <meta name = "viewport" content = "width = device-width, initial-scale = 1.0"> it works sort've okay on the iPhone except when switching back and forth between landscape and portrait it doesn't autofit. But I've been told the scaling doesn't work at all on android. So I went back through the mobile style sheet and removed everything that uses px or fixed widths and everything is in percentages or not defined at all, and I removed the meta tag for the iPhone. So then it didn't fit to the device width and scales it down tiny as though it is a large webpage. I tested removing the stylesheet completely for mobile (I am using a get variable for mobile site not device recognition) and the iphone still thinks it is huge site and scales my test webpage down to teeny tiny. I was looking at the dell mobile site as an example http://mobile.usablenet.com/mt/www.dell.com It doesn't look like it use the iphone meta tag or any kind of device recognition and yet it still works beautifully. Everything I've read online says to just not use fixed dimensions or pixels and you'll be fine.....so why, why isn't this working? Please help, I have been staring at this thing for hours. Thanks!
  4. Hi, I'm not sure where this belongs, but i'm working on a site that has html elements positioned over flash. It works fine in all my browsers on my pc, but on the mac when html elements are moused over, the element being moused over stays visible but all the rest of the html on the page disappears. Any suggestions? Preview of the site is at www.empiread.com/leftyco thanks!
  5. Well, i figured out a way to combine the forms without the need for the javascript submit, but in doing so I realized i had a typo for one of my variables in several places, so that was probably the root of the problem. Thanks anyway!
  6. I do have a session start (just didn't show here) and I know that my other session variables I am setting are working when I'm not using javascript to submit a form prior to submitting the form that was clicked on. Thanks for the warning on the array keys though, it hasn't given me an issue so far but good to know. I have several separate forms with submit buttons on the page, but I want one specific form submitted everytime another form on the page is submitted. So also if anyone has suggestions of another way to do this they'd be appreciated to
  7. Not sure whether to post this in PHP or Javascript. I have a form that is being submitted when another form is submitted using javascript. <form action="out_detail.php" method="post" enctype="multipart/form-data" onsubmit="javascript:submitdetail()" > Where submitdetail looks like: function submitdetail() { document.forms.detail_form.submit(); } The problem I'm having is I'm not sure how to capture the information that is submitted from the first form before the second form submits. I tried setting a session variable at the very beginning of page for the value I'm looking for: if($_POST[detail_descrip]) { $_SESSION[add_out][detail_descrip] = $_POST[detail_descrip]; } but the info is not showing up in the session variable, like the page doesn't load or something in between form submissions for the value to be set? Help please.
  8. I have a grid of buttons that I would like to have all the same width (specified button width: 100px for example). However when I specify this width, some of the text gets cut off. I specified overflow: visible, which seemed to do zip. I know i can insert a new line to manually make it wrap, however the text is coming from a database so I won't know exactly how long it will be. I can write a function to insert it with php, but if there's a CSS option I'd much rather use that. Thanks!
  9. I am trying to modify a flash/actionscript template with about 0 knowledge of actionscript. I have identified the problem, but don't know enough to fix it. I will try to explain. There are 4 photo galleries with thumbnails and the paths to the images are identified in an xml file. The problem is that when the user selects a new photo gallery that does not have as many images as the prior gallery they viewed, the thumbnails from the prior gallery are not removed. For example, if they view a gallery with 10 images and then view a gallery with 8 images, the last 2 thumbnail images(which are technically movie clips) from the first gallery remain on the screen. var createThumb = function(num:Number){ var path:MovieClip = gallery.bigIm.thumb; var mask:MovieClip = gallery.bigIm.thumb.mask; var bgr:MovieClip = gallery.bigIm.thumb.bgr; var pathMove:MovieClip = gallery.bigIm.thumb.cont; var thArr:Array = _root.getThPath(num); pathMove._x = 0; _root.numberImages = thArr.length; for (var j:String in path.gall){ path.cont[j].removeMovieClip(); } (function continues....) So, I don't know how the for(var:String in path.gall){ path.cont[j].removeMovieClip();} loop works, it doesn't look like any for loop i'm used to seeing....Let me what other information is necessary to solve my issue.....Thanks!
  10. How do I free the result from a mysqli_multi_query call? I tried using mysqli_free_result, but i'm guessing it's not working because the multi_query only returns a boolean, and I can only find object oriented examples of how to free the multi query and I need a procedural example. Any help? (I am not using any returned data from this call, just inserting some db information and it won't let me make any more database calls until I free the result) Thanks!
  11. I have a page that opens another page. When the "child" page (?) form is submitted it is supposed to refresh the opening page. Also, the form submits back to the same page, some code is executed, and then I was trying to use Javascript to close the page and update the opening page but it's not working and i'm not getting any errors. Here is the code for the child page which has the Javascript in it: <?php require_once("classes/tc_calendar.php"); require_once("lib/in_out.class.php"); $iob = new in_out_board(); ?> <html> <head> <script type="text/javascript"> function verifyDate(){ var currentTime = new Date(); var month = currentTime.getMonth() + 1; var day = currentTime.getDate(); var year = currentTime.getFullYear(); returnDateString = document.out_form.date1.value; var dateArray=returnDateString.split("-"); var form_month = parseInt(dateArray[1]) - 1; var returnDate = new Date(dateArray[0], form_month, dateArray[2], 23, 59, 59); if(returnDate < currentTime) { window.alert("Date selected is cannot be before the current date current date of " + currentTime); return false; } else { return true; } function updateParent() { window.opener.document.location.reload(true); } function closeWindow() { self.close(); } } </script> <script language="javascript" src="calendar.js"></script> </head> <body> <?php if($_POST) { print_r($_POST); if($iob->verify_date()) { if($iob->verify_add_out($_REQUEST[id])) { $iob->add_out(); //close the page ?> <script type="text/javscript"> //<!-- updateParent(); closeWindow(); //--> </script> <?php } else echo "The specified employee is already out! Please check in before changing out status."; } else echo "Invalid Date. <a href=\"javascript:history.go(-1)\">[Go Back]</a>"; } $iob->display_employee_info($_REQUEST[id]); $iob->add_out_form($_REQUEST[id]); ?> </body> </html> Once the form is submitted it checks that the date entered is valid w/ Javascript and if that's ok it checks that the record is ok to be added to the database, and then it adds it with $iob->add_out(). After it's added I would like opening page to be updated and the current page to close. Not sure why it's not working. Thanks
  12. I have two columns "first_name" and "last_name" returned as a single column "name" . I only want the values of that occur in the table "employees" that don't occur in table "out_board". So far I have this to return only the rows from employees that don't occur in out board: SELECT employees.* AS name FROM employees LEFT JOIN out_board ON employees.id=out_board.id WHERE out_board.id IS NULL; and this to combine the columns: SELECT CONCAT_WS(" ", first_name, last_name) AS name FROM employees; but I don't know how to combine the two so I only get the concatenated name column from my join. Thanks!
  13. whoops....clumsy me. I accidentally nested the include in the if statement that checks the Session authorization. No wonder nothing was happening! Thanks for all ur suggestions.
  14. No, it doesn't work without the quotes either unfortunately. The first error it gets to is where I am checking to see if the username exists. when I echo this query I get SELECT * from WHERE username = '' which is very strange to me too because the value that should be in the username is also now not appearing, and it is set from that function ($this->username = $username, and $username is a function parameter), and has nothing to do with the variables I am trying to include in the constructor but for some reason is now not working either.
×
×
  • 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.