Everah | Please use the appropriate bbCode tags when posting code in the forms. You can use [code], [{lang}] or [syntax="{lang}"] where {lang} is the language you want to highlight as.
Everah | Please do not post that your problem is urgent. All problems around here are urgent and the folks that volunteer their time here to help you will get to your problem as soon as they can
Hello,
I managed to solve the problem alone with a simple "hidden" command... now that part works
But I have another problem. And this problem really seems to be without any explanation!
The problem: my form doesn't send my TEXTAREA content to my e-mail.
--------------------------------------------------------------------------------------------
Here is my form script:
Code: Select all
<form method="post" action="thankyou1.php">
<p>
Submit to category (web address):
<?php
echo $_SERVER['HTTP_REFERER'];
?>
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
?>
<input type="hidden" name="client's ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="category" value="<?php echo $httprefi ?>" />
<br>
</br>
<p>
Your full name:
<p>
<input type="text" name="submitter's name" size="64" maxlength="40">
<p>
Your e-mail address:
<p>
<input type="text" name="e-mail" size="64" maxlength="40">
<p>
Your e-mail address again:
<p>
<input type="text" name="e-mail again" size="64" maxlength="40">
<p>
<p>
Listing title:
<p>
<input type="text" name="listing title" size="64" maxlength="40">
<p>
Listing description:
<p>
<textarea cols="64" rows="4" wrap="hard"></textarea>
<p>
URL:
<p>
<input type="text" name="URL" size="64" maxlength="40">
</p>
<input type="submit" name="submit" value="Submit request">
<input type="reset" value="Reset all fields">
</form>
------------------------------------------------------------------------------------------
OK and, the form uses a "thank you" page. A "thank you" message appears after submission.
This "thank you" page is PHP, it contains the e-mail address and other elements necessary for me to receive the e-mail
Here is the code of my "thank you" page:
Code: Select all
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "[b]MYEMAIL[/b]";
$mailsubj = "Flux Travel LISTING SUBMISSION";
$mailhead = "From: Flux Travel Submission System";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>
So, it works fine.... but the TEXTAREA is not sent...
What could I do?
I tried everything I that came into my mind and I still find the whole coding perfectly in order...
Everah | Please use the appropriate bbCode tags when posting code in the forms. You can use [code], [{lang}] or [syntax="{lang}"] where {lang} is the language you want to highlight as.