Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-01-2011, 03:24 AM   PM User | #16
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Question Error, please try again later

Quote:
Originally Posted by tangoforce View Post
Ok, here you are:

PHP Code:
<?
if(isset($_POST['sender_mail']) || isset($_POST['sender_message']) || isset($_POST['sender_subject']) || isset($_POST['sender_name']))
   {
   
$to "@.com";
   
$subject stripslashes($_POST['sender_subject']);
   
$body stripslashes($_POST['sender_message']);
   
$body .= "\n\n---------------------------\n";
   
$body .= "Mail sent by: " $_POST['sender_name'] . " <" $_POST['sender_mail']  . ">\n";
   
$body .= "Senders IP: $_SERVER[REMOTE_ADDR]\n";
   
$body .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\n";
   
$header "From: " $_POST['sender_name'] . " <" $_POST['sender_mail'] . ">\n";
   
$header .= "Reply-To: " $_POST['sender_name'] . " <" $_POST['sender_mail'] . ">\n";
   
$header .= "X-Mailer: PHP/" phpversion() . "\n";
   
$header .= "X-Priority: 1";

   if(@
mail($to$subject$body$header))
      {
      echo 
"output=sent";
      }
   else
      {
      echo 
"output=error";
      }
   }
else
   {
   echo 
"output=error";
   }
?>
As many of us said, it wasn't hard work - I just changed $HTTP_POST_VARS to $_POST. I've no idea why you couldn't do that though as its been clearly explained many times.

I've also put in your requested IP address and user agent too.

Usage: Put your email address in where you see @.com and upload.
I GOT THE SUBJECT ERROR?

OKAY, I did all that ... sorry I couldn't do as everyone suggested ... I didn't mean to sound dumb ... but I do best what I do ... Graphic Arts ... but the coding as I said before is not my forte ... coding I don't understand ... just like coders don't get artists ... why we help each other ... no ? ... html ... css ... that coding I understand ... where this scripting goes ... I apologize for sounding stupid once again ... but I am learning as someone helps me ... and thank you ... I know where to put the file once created in the root ... but the rest as for changing the part you said that was explained clearly ... only gave me an anxiety attack ... thank you ... you are amazing at what you do ... !!!!!!!!!!!!!!!

Error problem just the same?

Ugogrl is offline   Reply With Quote
Old 04-01-2011, 03:30 AM   PM User | #17
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Question Easy for you ... you are a coder

Quote:
Originally Posted by Labrar View Post
Thats not pretty hard to understand.
Just copy the actionscriptcode and paste it to your first frame in root.
Save the phpcode as a phpfile to your server.
Just modify the path in your actionscript that it matches the path to your php file on server and test it
Okay actionscriptcode .... lost me

with the old script I put [php] and the page in the root .. and the flash in the folder ... and it worked ... you made changes the first time ... it worked ... it just didn't collect IP ISP ... info I wanted ... that was all that was wrong ...

then everyone said the Vars thing wasn't good ... but I don't know if the flash file sees Var ... or what you have all changed it to ???

I know I am speaking child like language ...cause ... I teach children art .. and have to speak in their terms ... so if I am not getting this it is because I am a child with coding ???

Sorry for being such a problem to so many ... I hope what I just said makes sense confused:

Last edited by Ugogrl; 04-03-2011 at 12:57 AM..
Ugogrl is offline   Reply With Quote
Old 04-03-2011, 12:58 AM   PM User | #18
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
still no help???
Ugogrl is offline   Reply With Quote
Old 04-03-2011, 03:13 AM   PM User | #19
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
What are you wanting? There are only so many ways we can explain things. You have to at least try to understand it rather than just copying and pasting. It may be time to hire a professional. Try forming a proper sentence so we can understand you better. What error did you get? We don't know what error you got, give us the error message.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 04-03-2011, 01:34 PM   PM User | #20
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,502
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Tell me what the error is and I might be able to help.

Secondly it's taken you DAYS to come back here and tell me it has a problem and yet within hours you're bumping this thread complaining of no help and PM'ing me demanding to know why I've not helped you yet. You take days but expect instant help?

Please do not do that again. We're giving you free help. The least you can do is be patient and allow us to reply in our own time.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 04-03-2011, 01:36 PM   PM User | #21
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,502
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by Ugogrl View Post
Okay actionscriptcode .... lost me

with the old script I put [php] and the page in the root .. and the flash in the folder ... and it worked ... you made changes the first time ... it worked ... it just didn't collect IP ISP ... info I wanted ... that was all that was wrong ...

then everyone said the Vars thing wasn't good ... but I don't know if the flash file sees Var ... or what you have all changed it to ???
Actionscript is the code that runs inside the flash animation/form.

Changing the $HTTP_POST_VARS to $_POST will have no effect on the working of the php script. The php script works independently of the flash form. The flash form sends the data TO the php script which then does its own processing.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 04-04-2011, 12:11 AM   PM User | #22
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,502
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Ugogrl, are you going to answer or not?
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 04-07-2011, 04:10 AM   PM User | #23
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Question Re attack on the little stupid girl

Pardon me?

If you look at the replies and dates I got back to you immediately, about the Error? VIA PRIVATE MESSAGE AS YOU ASKED ME IN THE FIRST PLACE TO CONTACT YOU?
If you deleted your private message, then I am sorry, but I did and with the exact Error I received?

Now, I, like you did not get back to you immediately, because I also, don't always get messages on time ... and I did reply when I did get the message.

I also explained in my profile ... that I am dealing with a disability ... so my apologies

I also sent you thank you's for all you did and didn't do ???

My apologies to everyone who thought I was not understanding something, and only asked for a clearer explanation


Quote:
Originally Posted by tangoforce
Quote:
Originally Posted by Ugogrl
Quote:
Originally Posted by tangoforce
Quote:
Originally Posted by Ugogrl
everything you asked is in the very first question I asked?

Flash doesn't need to be changed
Done. I've posted it in the topic. Let me know if there are any problems.

I did report it didn't work to you and had not heard back
I've been a bit busy lately and codingforums.com doesn't send me email updates of topics - only PMs. Also I left you that code days ago. Today you come back moaning it doesn't work and within hours you're complaining that no-one has helped you and PM'ing me? - I've been sleeping! You've taken days to get back to us but expect help within hours?

I've done what I can with the code. You've been very vague through all of it as to how the flash integrates with the php. The code I've updated was very simple which you could of easily done yourself but chose not to claiming you didn't understand. I simply replaced $HTTP_POST_VARS with $_POST. To show you what I mean its like typing your text into this forum. You make a mistake, delete it and amend it. It was literally that simple! You didn't need to understand the code, just delete $HTTP_POST_VARS and in its place put $_POST.

You need to tell me exactly what the error says with regards to the subject. Just saying "I GOT THE SUBJECT ERROR?" means almost nothing to me. It could be that it doesn't display the subject, the subject is empty, not indexed... You must copy and paste the error message for me to understand it. IF you tell me what the error message is then I can try to help you further. I am not able to read minds.
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 04:19 AM   PM User | #24
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Question Re: flash

I did say the link to the code I used etc ... you said you knew nothing about the flash part, only the [php] part, so not to bother you with the flash part ... now you asked me about it? When I opened the flash file ... there was nothing in the code/script part? So, what could I tell you if you did not want to know about the flash format?

Quote:
Originally Posted by tangoforce
Seeing as you bumped yuor thread and expected me to answer immediately, are you going to reply to your topic or not?

Seriously, you've very demanding towards us but don't give a damn about replying to us in a timely manner.

Quote:
Originally Posted by Ugogrl
Quote:
Originally Posted by tangoforce
Quote:
Originally Posted by Ugogrl
everything you asked is in the very first question I asked?

Flash doesn't need to be changed
Done. I've posted it in the topic. Let me know if there are any problems.

I did report it didn't work to you and had not heard back
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 04:29 AM   PM User | #25
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
My Apologies

I apologize for being stupid, I don't know what I want besides what I asked for in the first question, then everyone decided to change what I asked? Then told me that I should get coding and fix it myself, I tried, I told one person it was cool, his code worked, but it still did not grab the ISP/IP code that was all. Then everyone ragged that his format was outdated and would not work, but it did work, I just really still wanted to catch the ISP/IP as I explained once again in my very first question. He got that? So where did I not explain properly. He stopped helping because he figured that I had said that it worked. Yes what he did .... did work. Just not the part as I explained above once again. I am not to trying to just copy and paste, I am trying to learn from the help I am being given, but I was trying to explain ... I am not a coder ...just like one does not do flash ... doesn't get it ... if I said to him something in flash would he turn around to me and think he was stupid ... no because I would explain it in Layman terms, just like I have asked .... K.I.S.S. format works ... There is no actionscript in the flash??? and when the code was changed with no Vars ... it did not work ... the only thing that come up WAS SORRY ERROR IN SUBJECT ??? nothing else ... ???
Where do you want me to look for what you want?

MY APOLOGIES ONCE AGAIN ... FOR BEING STUPID IN CODING

I am really really sorry ... as I said before time and time again



Quote:
Originally Posted by _Aerospace_Eng_ View Post
What are you wanting? There are only so many ways we can explain things. You have to at least try to understand it rather than just copying and pasting. It may be time to hire a professional. Try forming a proper sentence so we can understand you better. What error did you get? We don't know what error you got, give us the error message.
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 05:00 AM   PM User | #26
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
My apologies to all

I did explain right from the beginning ... say what I wanted and even had someone reply with the answer ... I asked for what was still missing ... then everyone jumped all up and down about the code being old and outdated?

Then someone said please contact me private message with what I wanted?

I did ... I even sent the link where I found the cute code

http://www.ffiles.com/flash/contact_...tcha_2541.html

they replied ... I don't know flash ... but here is the php code fixed

when I applied it ... it gave me ERROR IN SUBJECT? ... sorry that was all I got?

So, that is all I replied with?

I like the code, I cannot afford to pay for a form mail like this, that is why I asked for help?

Like I said I know what I know and I don't judge anyone for what they don't know, nor do I treat someone stupid because they may not know something I do ... I teach them with the K.I.S.S. format ... just like I expect from other people who are brilliant at what they know and do.

I really admire the person who helped me ... and never spoke down to me ... he guided me ...

sorry, I will not do PRIVATE MESSAGE ever again also ... because it is my word against someone else'

I did give thank you's to everyone who did help me ... I am seriously thinking about that now ??? I thought that meant THANK YOU for your help???

Which is what meant a lot to say to someone when they took the time to help you.

Now, as for not being here at a drop of a dime, I don't always have access to a computer, because I have a disability as my profile says. I did, although reply via PRIVATE MESSAGE as soon as I got the ERROR MESSAGE, but like I said, I will not do that again.

I hope to the nice person who asked me to explain my questions etc in plain and simple sentences that ... explains everything?


MY APOLOGIES TO ALL .........ONCE AGAIN
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 05:07 AM   PM User | #27
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Thumbs up THANK YOU ONCE AGAIN NICE Person!!!!

Thank you ... you were very kind to me ... I will not forget that ever
and I won't care about what was or was not said ...

Quote:
Originally Posted by Labrar View Post
That means that this code is to old. Nobody uses such scripts since PHP4.
But indead this is a popular Codesnippet out of google.

But i guess youre not really in PHP aint ya?
Leave it like that. Its old, but it works.
So dont you care about it.

But in the other hand this is not the way of secure coding.
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 05:26 AM   PM User | #28
Ugogrl
New Coder

 
Join Date: Feb 2011
Location: EVERYWHERE ... YOU JUST NEVER KNOW WHEN I WILL POP UP WHERE
Posts: 27
Thanks: 8
Thanked 0 Times in 0 Posts
Ugogrl can only hope to improve
Unhappy

Like I said, it didn't take me days, I replied almost immediately when I got the error, sorry I just got Subject Error, I didn't know any other way to explain that what I saw.

You tell me not to complain but I did and was here right away, I watched daily for a reply to my reply so I could answer promptly, I only PM you because you asked me to do that in the first place, and as you said it was a good thing I did, because you said you didn't get the posted messages?

I never ever demanded instant help, whenever I really don't care, as I never said URGENT I NEED HELP RIGHT NOW?

Patience is obviously what I have, you are the one complaining about me not being here, etc?

Please don't jump all over me, because I PM you like you asked ...

My apologies to you also ... that you misunderstood ... that I was not in a rush ... and when it was convenient ... reply when you could or can



NO MORE PRIVATE MESSAGES PLEASE ... THANK YOU

Quote:
Originally Posted by tangoforce View Post
Tell me what the error is and I might be able to help.

Secondly it's taken you DAYS to come back here and tell me it has a problem and yet within hours you're bumping this thread complaining of no help and PM'ing me demanding to know why I've not helped you yet. You take days but expect instant help?

Please do not do that again. We're giving you free help. The least you can do is be patient and allow us to reply in our own time.
Ugogrl is offline   Reply With Quote
Old 04-07-2011, 02:06 PM   PM User | #29
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,502
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by tangoforce View Post
Ok, here you are:


Quote:
Originally Posted by Ugogrl View Post
I GOT THE SUBJECT ERROR?


Quote:
Originally Posted by Ugogrl View Post
Pardon me?

If you look at the replies and dates I got back to you immediately, about the Error? VIA PRIVATE MESSAGE AS YOU ASKED ME IN THE FIRST PLACE TO CONTACT YOU?
Erm no you haven't. I posted the code for you on 31/3/2011. You then left it until 4/4/2011 until coming back saying you got a subject error and then sent me a PM within hours demanding to know why I had not replied. That is 5 (FIVE) days. You claim you got back to me immediately? - I don't think so.

If you can't co-operate with us properly in a timely fashion then that is your problem do not turn this around on me.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 04-08-2011, 12:36 AM   PM User | #30
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,502
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Deleted. Not worth the trouble.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.

Last edited by tangoforce; 04-09-2011 at 05:05 PM..
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
flash, form mail, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:21 AM.


Advertisement
Log in to turn off these ads.