Jump to content

tcorbeil

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tcorbeil's Achievements

Member

Member (2/5)

0

Reputation

  1. MadTechie, I've tried with the \r, without it, all variations I can think of.. it still isn't formatting.. Is there another way I can go about? T.
  2. actually HeyRay, the full code for my email is.. $headers = "From: xxxx@xxxxx.com \r\n"; $headers.= "Content-Type: text/html; charset=ISO-8859-1 "; $headers .= "MIME-Version: 1.0 "; /*notice there aren't any \r\n after the second two header additions. This is what made this version work correctly*/ mail($email2, "xxxx.com: Registration- Thank you.", $body, $headers); does the the line "$headers.= "Content-Type: text/html; charset=ISO-8859-1 "; " have anything to do with formatting?? T.
  3. Thanks HeyRay but it is not working.. my actual code starts off as $body= "Hello.\n\n".$UserName." blahblahblah... and when I check my email, the format is: Hello. Tim blahblahblah... where I would expect: Hello. Tim blahblahblah... ..any other ideas? T.
  4. Hello, I'm using this line to send an email... mail($email2, "XXXX.com: Registration- Thank you.", $body, $headers); Now the variable $body is quite long and needs to be formated.. so i tried this: $body = "Welcome\nThis is a test\n1)blahblah\n2)blahblah"; Where the outcome i would expect is: Welcom This is a test 1)blahblah 2)blahblah.. obviously isn't formatting with '\n'... any other ways to format in variables or am i chasing a ghost? Thanks T.
  5. Hello again everyone. My site is coming along.. couldn't have done it without this forum, thank you everyone! Anyway, I was hoping to use google adsense to help generate some revenue on my site.. problem is, the site is dynamic and uses mySQL with php.. My question is, is there some sort of way to grab a php variables and append them to a text file of some sort?? That way, i could point the google bot to the 'hard written' text file?.. I don't really know where to start with all of this.. I know my pages do not have "hard" content in them.. only when someone is logged in and the php variables are given their values... Thanks. T.
  6. kenrbnsm, that is brilliant! -Thank you! T.
  7. well here goes: yes i do have the Session start.. I was trying to use a counter to load a session array.. while ($i < $num) { ..some code assigning a value to $first... $_SESSION[$i] = $first; $_SESSION['blah'] = $first; // for troubleshooting I added a this line.. $_SESSION['count2'] = $i; echo $_SESSION['blah']."--"; echo $_SESSION['count2']; } on echo, $_SESSION['count2'] = $i; always took so i rem'd out the $_SESSION[$i] = $first; line and it seemed to work.. of course, $i being a counter, I guess this is not acceptable.. Any ways around this? I can't use a hardwired string to load the session array as the values will change all the time..
  8. ok, in testing, I had this line before any of the code above.. $_SESSION['1'] = "test"; it appears that a session aray cannot be numbers?? T
  9. Is there a maximum amount of variables you can stack into a session array? I have this: $_SESSION['count'] = $first; $_SESSION['blah'] = $first; echo $_SESSION['blah']."--"; echo $_SESSION['count']; the result is always the same, $_SESSION['count'] = $first; seems to take but the second does not.. I do have several other session values.. just wondering if I reched my limit?? I have tried everything I could think of but no go.. T.
  10. Ok, that's cool. one last thing.. is there a way to hide the href link? I want to call my script but I don't the link to show at the bottom of explorer or any web browser for that matter.. Thanks again. T.
  11. Actually, here's another question: Can i do exactly wht you mentioned but instead of calling an external script, call a function instead?? Thanks. T
  12. I don't even know where this question classifies itself but hopefully someone can point me in the right direction: If i have a list as such: -NHL -MLB -NBA -NFL Is there a way to have an option like an 'onclick' where each item that is clicked gives a variable such as $clickedvalue the value of the item clicked while at the same time, routing to a function in separate php file? 1) So let's say i clicked on MLB 2) the variable $clickedvalue = item clicked (in this case MLB) 3) call a function in a separate php file for processing.. 4) return to main script. so far i know of the href=# but with it, i can't really give my variable a value.. Maybe i'm asking much so i do appreciate any ideas. Thanks. T
  13. If I have a table called hockey such as this: submitid Flames Oilers Canucks ------------------------------------------------------------------- 1 | Iginla | Smith 2 | | Roloson | Sedin Concentrating on the Canucks column, basically if i populate the table, let's say for example on line 1, I have data for Flames & for oilers but none for Canuck at the time of entry.. As it stand, when I DO have data for Canucks, I don't want there to be an empty spot.. So if I have data on line one for Flames & Oilers, when I get data for Canucks, I want it to fill out uniform.. Is there an easy way to this? I realize there is commands to alter a row but what is the process to look at row for a specific column, find the first empty space of that row, and fill out that column without leaving spaces between rows.. the end result being: submitid Flames Oilers Canucks ------------------------------------------------------------------- 1 | Iginla | Smith | Sedin 2 | | Roloson | Any help would be much appreciated.. T.
×
×
  • 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.