Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2003, 07:07 PM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default help needed in mailing variable values from a form

hi everyone,

        I need a help in the code. I am passing values of a dare and a system name in a mail as a message to a mail id. i am able to pass only the string but not the date value. can some one correct teh code for me.
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">

</HEAD>
<BODY>
<P>&nbsp;</P>

<form id=form1 name=form1>

<?php
$comDate = $_POST['hdndate'];
$comName = $_POST['hdnComName'];
$from = "[email protected]";
$to = "[email protected]";
$subject = "hi Admin";

$msg = " $comName is registered by xyz on $comDate "; // help needed here comdate value is not passed.

mail($to, $subject, $msg, "From: {$from}");

echo "You have registered successfully. Please contact Admin";

?>


</form>
</BODY>
</HTML>
 
Old January 5th, 2004, 10:15 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This is an ASP forum, not a PHP forum.

Is your $_POST collection key for the date form field the right case? Try outputting the raw value of $comDate to see if it contains anything.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT variable help needed ElinF XSLT 2 February 23rd, 2007 10:15 AM
request values into variable from another form ? rehana Beginning PHP 5 December 16th, 2003 02:34 PM
Values of one form needed for validation on anothe nazneen JSP Basics 0 June 19th, 2003 03:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.