Jump to content

dasein

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dasein's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm writing a <font color> to mysql for later retrieval but the colors don't make sense. It's posted and retrieved in PHP. If I put in <font color=\"#ff0000\">RED</font> it gets properly stored in the db (I can see it) but it gets retrieved and shows up green instead. I've tried doing the stripslashes() with addslashes(), tried <font color=\"#red\">RED</font> and <font color=\"red\">RED</font>.. no matter what config I try, I always get the word RED showing up green as if I had used <font color=\"#00ff00\">RED</font> instead (when I tried <font color=\"#00ff00\">RED</font> it shows up black. I give. What am I doing wrong? I know it's something dumb, but I can't find a similar issue with any searches. BTW, viewing the Source Code from the rendered page when it's posted shows it's properly tagged as red: color=\"#ff0000\" .Thanks.
  2. Thanks, kenrbnsn. My dumb. I had php in html. html in php works. Appreciate it!
  3. I'm trying to run a readout of a db which runs fine as an individual script. When I embed it in PHP inside an html div container, it bails when it encounters the first ">" and simply outputs the PHP characters from there through the "?>". The rest of the html runs fine before and after. For example, this line echo "<select>"; would output "; and any other php script up to the ?> end, after which it renders html fine. If I run the script as a separate php file, it runs as expected. Any help would be appreciated. Thanks.
  4. No, I appreciate that...the extra field would be in the recipient db and make the counters unnecessary as the cron job will dish out x copies each time it kicks in...thanks! I have something to go play with now 8-)
  5. So, in other words, when the user SUBMITs the php mail form, if the emails2send count is over 500, I send all the info to a toMail db, with a pair of start/stop counters in two of the fields. The cron job checks every hour, sends out x (say 500) copies (email addresses sequenced from another db), adjusting the counter when done for the next hour it will come in again? ...something like that? ...or is that too Rube Goldberg?
  6. The user works through a php script to send the emails (something I'd like to keep). How would I integrate that on SUBMIT to either a cron script (I can pass variables into a cron? header, subject, message, etc...) or a mailing list? Mailing list services can be subscribed too? I use mailing lists on the host we have, I'm not understanding how that would work to avoid running up my counter on the site. Sorry...this is new territory for me.
  7. I need to email about 2 or 3 times a week to about 2,400 people. Unless you go with a VPS plan ($$$), most hosting companies I've gone to limit things to 250-750 per hour. Is there a way to write a php script that sends out, say, 500 each 60 minutes so the sender (not me) wouldn't have to hassle with doing that him/herself? These 2,400 are legitimate, no spam here, and it's only occasionally. Most emailing would be in the 10-25 range. I'd have to attach a clock to the script somehow, no? Thanks.
  8. But all I want to do is allow a user on his own machine to do a browse to find a file to attach to an emailer page that mails out with $subject, $header, $message, $from, $to, but with an attachment the user selected. When the file is attached, only the file name comes through in the email (I think I can easily parse away everything left of the final '/' before the filename itself. I wouldn't want anyone getting my directory layout either. You're saying, then, there's no way to do this at all except ActiveX?
  9. But all I want to do is allow a user on his machine to do a browse to find a file to attach to an emailer page that mails out with $subject, $header, $message, $from, $to, but with an attachment the user selected. When the file is attached, only the file name comes through in the email. I wouldn't want anyone getting my directory layout either. You're saying, then, there's no way to do this at all except ActiveX?
  10. I'll try the first, sounds good...the second I'm clueless...thanks!
  11. I have an email page running through a php script, but I wanted to allow the user to upload an attachment from their client machine. The problem I'm having PFMaBiSmAd, is when you click on BROWSE and select a file, it shows the entire pathname in the textbox, but won't pass that to the php script...only the file name itself. Someone suggested using a hidden type to capture the full pathname...not sure how to go about doing that though. Thanks, sorry about not being clear in the first place. I understand the security point, but I don't understand the point in having a <input type="file"...> if it doesn't allow full pathname capture?
  12. HTML <input type="file" ....> correctly shows but doesn't pass the full pathname on BROWSE, only the file name on the php action form I'm trying to upload a file as an attachment. Is there a short fix? Thanks.
  13. Hey, in putting together what you asked for, I just realized my dumb mistake. I was improperly testing the passed variable for =='on' when in fact it was being passed =='YES' or 'NO'. I knew it was a dumb mistake somewhere, but collecting the code parts brought it out...so thanks!
  14. Thanks...I was playing around and did just that. When there was no value listed at all, the reads from the database were correct, but on submission from the email form, all radio buttons were given an 'on' value. When I then listed a value exactly as you did here, all radio buttons were given an 'off' value on submission. I can't figure or trace what's going on here.
  15. Hi, I've got an email that gets sent out with an embedded form in it. On the form are text boxes and radio buttons. Both present information read from a database correctly. The email allows the recipient to modify any informations and hit the SUBMIT button to modify the information back in the database. If I modify something in one of the textboxes, it makes the correct change (the info in passed along fine). But all the radio buttons are passing as 'on' when, in fact, some are not 'on' or ''....driving me nuts trying to find the fault. The information is either stored as YES or NO in the db. Below is a sample from the form where $row[6] contains YES or NO. That's being read okay. If I click the NO button on the form in the email, unlike the textbox, it isn't passing that to the processing php script. All radios are sent as 'on' for some reason. Thanks...I appreciate any heads-up on this. if($row[6]=="YES") { $emailmessage = $emailmessage . "<input type=\"radio\" name=\"newvalue\" CHECKED>YES "; $emailmessage = $emailmessage . "<input type=\"radio\" name=\"newvalue\">NO</td></tr>"; } else { $emailmessage = $emailmessage . "<input type=\"radio\" name=\"newvalue\">YES "; $emailmessage = $emailmessage . "<input type=\"radio\" name=\"newvalue\" CHECKED>NO</td></tr>"; }
×
×
  • 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.