cluce
-
Posts
354 -
Joined
-
Last visited
Never
Posts posted by cluce
-
-
thanks a million. that was it
-
I have one page called home.html with the following code:
<A HREF="http://localhost/welcome.php"> Hi, I'm Kevin! </A>
<FORM ACTION="http://localhost/welcome.php" METHOD=post>
First Name: <INPUT TYPE=TEXT NAME="firstname"><BR>
Last Name: <INPUT TYPE=TEXT NAME="lastname">
<INPUT TYPE=SUBMIT VALUE="GO"></FORM>
and the other page is called welcome.php and has the following code:
<HTML>
<HEAD>
<TITLE>Today's Date</TITLE>
</HEAD>
<BODY>
<p>welcome to my site</p>
<P>Today's Date (according to this Web server) is
<?php echo( "Welcome to our Web site,$firstname $lastname!" );
?>
</BODY>
</HTML>
everything loads fine but the firstname and lastname entered is not showing. I am puzzled. I cant see where the error is.
can someone please help?
thanks in advance
-
hey guys,
I am doing a submit form in DW 8 using php. Can someone please tell me how can I make these textfields to be required? Right now they can submit null values. Here is the code I am using.
<?php
$to = "namet@reaganpower.com";
$subject = "Technical Support request form";
$body = "
\n\n Name: $textfield
\n\n E-Mail Address: $textfield2
\n\n Comments: $textarea";
mail ($to, $subject, $body);
header("Location: http://reaganpower.com/thankyou.html");
?>
[SOLVED] trouble passing inputed data from one page to another
in PHP Coding Help
Posted
well that was just an simple example I created to make it easy to read. I have the complex code through Dreamweaver 8 in a website I am working on. But I will check out that website. Thanks