Jump to content

Rianna

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by Rianna

  1. Hi, will this bring up the items in my array for each new day? $now = date(); Please let me know, thanks!!
  2. OK, I get what you mean, I should have also said text. If I want the text to change, I have some odd things going on, on my pages so I will need it. What about it? Javascript the only good second, minute, and even hour timers? Thanks much for the thinking outside the box, anyway as you both do. ;) Its appreciated.
  3. Is javascript the only option, will any other scripts that you know of do it as well? Trying to avoid javascript for a few reasons. Thanks.
  4. Hello, I prefer using php but someone said you can't rotate ads on a timer using php, you have to use javascript, is that true? Thank you very much!
  5. Not sure what you mean, can you show me a string for this please, to use instead of mine. Thank you very much!
  6. Hello, I would like to change some php to calling on something by day. The one I have only calls on something randomly. Do you know how I can alter this string to accomodate this? Thanks! $banner_no = (rand()%(count($s_con)-1)); Just so you know what the above does, gets a random number which is in the content of my file. for instance if I have 1-some text 2-different text 3-some other text It grabs one of these numbers and the text along with it to display randomly. I would like it to display by day and in order instead.
  7. Hello, I would like to know what ereg means, explaining it to someone who knows little about php. All the definitions I look up make no sense to me the way it is explained. Thanks!!!  ::)
  8. If this doesn't work, any way to make an onclick to a new page size work with a form action? Thank you.
  9. Hello, I was told I could use the window.open command in the php part of my form to open my thank you and error pages in a new window size. But how? Here is the code that it might need to be something like. "NewWin=window.open('http://www.mypagethatneedsresized.html/','NewWin', width=620,height=390,');" How can I add that to the code that look like this on my php page. I tried several but none of them worked....... Thank you very much! Jen header('Location: [a href=\"http://www.moonbaby.info/linkexchange/main/exchangethankyou.html');\" target=\"_blank\"]http://www.moonbaby.info/linkexchange/main...you.html');[/a] if (empty($_REQUEST['postit'])) { header('Location: [a href=\"http://www.moonbaby.info/linkexchange/main/exchangeerror.html');}\" target=\"_blank\"]http://www.moonbaby.info/linkexchange/main...or.html');}[/a]
  10. Thanks, you can use javascript inside your php code? Jen
  11. Sure, for instance this is what is says it the php part of my form. _____________________________________________________ $errorurl = "http://www.mywebsite/error.html" ; $thankyouurl = "http://www.mywebsite/thankyou.html" ; if (empty($email) || empty($fastmail)) { header( "Location: $errorurl" ); exit ; header( "Location: $thankyouurl" ); _____________________________________________________ What code can I add to this to make the error thank you pages open in a new browser window. And also to open in sizes I can specify? Thanks a lot!
  12. Hi, what is the code to specify the new page size of our error and thank you pages for our php form? Mine are so small, I would like to put them in a small window. Thank you very much! Jen
  13. ??? Are you saying I need to set it up through the php ini? If so how? Thanks. [!--quoteo(post=377523:date=May 27 2006, 03:22 AM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ May 27 2006, 03:22 AM) [snapback]377523[/snapback][/div][div class=\'quotemain\'][!--quotec--] php.ini set the email up of your isp ok. [/quote]
  14. Thanks but it is not working anyway. My email is not sending, I am getting an error message from the server. I need to know about this ISP question above. What do I enter into the ISP area of the command.
  15. Hello these instructions someone gave me to get my "From: "in my email to give my own email address as follows... $headers = 'From: youremailstuff@yourisp.com' . "\r\n" . 'Reply-To: youremailstuff@yourisp.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); I am doing something wrong. I am getting this error message from the server. This is what the server message says. "MAILER-DAEMON@smtp04-02.mesa1.secureserver.net We're sorry. There's a problem with the e-mail address(es) you're trying to send to. Please verify the address(es) and try again." I was told to enter my isp in the from and the reply as you can see above. I took that as meaning my server IP address. Is this incorrect? If it is the IP how to I write it, as numbers with the usual periods in between or something else. If it isn't the IP but an ISP what exactly do you mean? Do you mean my host has its own ISP address that I can refer to? Or is there an individual ISP for each hosted account? Let me know please, thanks, Jen
  16. Thats it! Thanks!! [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] [!--quoteo(post=377256:date=May 26 2006, 04:13 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 26 2006, 04:13 AM) [snapback]377256[/snapback][/div][div class=\'quotemain\'][!--quotec--] You need to change this $_REQUEST['message'] to the same name as the form. [/quote]
  17. Hi, I was told a preliminary way to stop some spammers in our forms was to change the 'message' or 'comment' fields to an uncommon name. So I tried this technique and all it did was keep in typed message in my form from showing in my email. For instance here is some simple code I tried. My 'message' field in the form area only looks like this when it is working. <textarea name="message" </textarea> and here is some php code when it works. <?php $headers .= "From: \" <".$from_address.">\n"; mail($message, $headers); $from_address = "myemailaddress@myemailaddress"; $message = $_REQUEST['message']; mail("myemailaddressagain", "Sent From Form", $message, $headers); ?> So I changed all these message fields to 'post it' . Including this field. $message = $_REQUEST['message']; into $postit = $_REQUEST['postit']; Like I said, all I get is an email without any message from the form when I change these fields. Can anyone explain this to me please? Thanks! [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  18. OK sure, not much more to it. Jen <?php $headers .= "From: \" <".$from_address.">\n"; mail($message, $headers); $from_address = "myemailaddress@myemailaddress"; $message = $_REQUEST['message']; mail("myemailaddressagain", "Sent From Form", $headers,"" $message,"" ); header( "Location: [a href=\"http://mywebaddress/thankyou.html");\" target=\"_blank\"]http://mywebaddress/thankyou.html");[/a] ?>
  19. OK Thanks a lot. I added this per your instructions. $headers .= "From: \" <".$from_address.">\n"; mail($message, $headers); $from_address = "myemailaddress@myemailaddress"; $message = $_REQUEST['message']; mail("myemailaddressagain", "Sent From Form", $headers,"" $message,"" ); This is the only thing I changed in my php code. But now it doesn't work at all. So the error is just in the above part. Can you see anything wrong with it? Jen [!--quoteo(post=376945:date=May 25 2006, 04:45 AM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ May 25 2006, 04:45 AM) [snapback]376945[/snapback][/div][div class=\'quotemain\'][!--quotec--] $to = "recipient@email.com"; $from_address = "sender@email.com"; $from_name = "Your Name"; $subject = "This is the subject"; $message = "your message here"; $headers .= "From: \"".$from_name."\" <".$from_address.">\n"; mail($to, $subject, $message, $headers); [/quote]
  20. Hi, does anyone know how to make the form message that comes to my email address contain a different From: address? The area in our emails where it says Subject: Date: From: To: I would like the from area to say my own email address, not the long sever address they give me. Thanks a lot, Jen
  21. OK, I finally found that one too. Thanks. Now everything else is working fine but I need one more thing, I hope you'll know it. How to put an auto message in my email along with the message that my form sends to my email? I have this but it isn't working. The input part of my form is called "message" Thanks! Jen $message = 'This message was sent via the form on my web site:' . "\n"; [!--quoteo(post=376272:date=May 23 2006, 05:05 AM:name=samshel)--][div class=\'quotetop\']QUOTE(samshel @ May 23 2006, 05:05 AM) [snapback]376272[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hello, You can use header() $comments=$_POST['comments']; if(checkOK($comments)) {//comments ok, redirect to thank you page header("Location:thankyou.php"); } else {//comments not ok, redirect to error page header("Location:error.php"); } hth [/quote]
  22. Hi, how do I put code into my php form code. So that it will go to a thank you page once the post is made and error web page if the form is empty? It is standard php code using the _post command to send my form message. The form uses method="post" . It is only needed for the comments area, and the comments area code looks like this. $comments=$_POST['comments']; checkOK($comments); Hope you can help. Jen.
×
×
  • 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.