Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
PHP help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="urble" data-source="post: 6740"><p>well, i had a friend come to me yesterday and ask me 'why won't this work?' this referring to (outdated link removed). what it is supposed to do is send the form to the guys email... after you submit, the php i have doesn't work. i don't know to much php, or well, i don't know any functions <img src="/mac_images/images/smilies/Undecided.png" class="smilie" loading="lazy" alt=":\" title="Undecided :\" data-shortname=":\" /> and i have it embedded into the next document that follows when you hit submit and this is my script i have so far.</p><p>[CODE]<?php</p><p>$TO = 'midnight_supra@hotmail.com';</p><p>$userip;</p><p>if (getenv("HTTP_CLIENT_IP"))</p><p> $userip = getenv("HTTP_CLIENT_IP");</p><p>else if(getenv("HTTP_X_FORWARDED_FOR))</p><p> $userip = getenv("HTTP_X_FORWARDED_FOR");</p><p>else if(getenv("REMOTE_ADDR"))</p><p> $userip = getenv("REMOTE_ADDR");</p><p>else $userip = "UNKNOWN";</p><p>return $userip;</p><p>$headers = 'From: Anonymous on $SERVER_NAME <$mail>\n';</p><p> .'X-Mailer: LOD Join Application PHP Mailer\n';</p><p> .'X-host: $userip\n';</p><p>$subject = 'LOD Application';</p><p>$host = gethostbyaddr($REMOTE_ADDR);</p><p>$message = '';</p><p>while (list($key, $val) = each($HTTP_POST_VARS)) {</p><p> $message .= $key.' : '.$val.'\n';</p><p>}</p><p>$message .= '\nSent by $REMOTE_ADDR\n';</p><p>mail($TO, $subject, $message, $headers);</p><p>echo '<p>Application Sent.</p>';</p><p>?>[/CODE]</p><p></p><p>sorry if i am so ridiculously off track with that script...any help would be appreciated</p></blockquote><p></p>
[QUOTE="urble, post: 6740"] well, i had a friend come to me yesterday and ask me 'why won't this work?' this referring to (outdated link removed). what it is supposed to do is send the form to the guys email... after you submit, the php i have doesn't work. i don't know to much php, or well, i don't know any functions :\ and i have it embedded into the next document that follows when you hit submit and this is my script i have so far. [CODE]<?php $TO = 'midnight_supra@hotmail.com'; $userip; if (getenv("HTTP_CLIENT_IP")) $userip = getenv("HTTP_CLIENT_IP"); else if(getenv("HTTP_X_FORWARDED_FOR)) $userip = getenv("HTTP_X_FORWARDED_FOR"); else if(getenv("REMOTE_ADDR")) $userip = getenv("REMOTE_ADDR"); else $userip = "UNKNOWN"; return $userip; $headers = 'From: Anonymous on $SERVER_NAME <$mail>\n'; .'X-Mailer: LOD Join Application PHP Mailer\n'; .'X-host: $userip\n'; $subject = 'LOD Application'; $host = gethostbyaddr($REMOTE_ADDR); $message = ''; while (list($key, $val) = each($HTTP_POST_VARS)) { $message .= $key.' : '.$val.'\n'; } $message .= '\nSent by $REMOTE_ADDR\n'; mail($TO, $subject, $message, $headers); echo '<p>Application Sent.</p>'; ?>[/CODE] sorry if i am so ridiculously off track with that script...any help would be appreciated [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
PHP help
Top