Why wont it direct

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

Why wont it direct

Post by Aaron »

The form

Code: Select all

<form method="POST" action="mixin.php">
            <div align="center"><font face="Verdana" size="2">Name:&nbsp;</font> 
              <br>
              <font face="Verdana" size="2"> 
              <input type="text" NAME="name">
              </font> <font face="Verdana" size="2"><br>
    </font><font face="Verdana" size="2"><br>
    Says:</font> <br>
              <font face="Verdana" size="2"> 
              <textarea rows="8" NAME="says"></textarea>
              </font> </div>
            <p>
              <input type="submit" value="Send" NAME="send">
              <input type="reset" value="Reset" name="B2"></form>
The sorter

Code: Select all

<?
$send = "namesays.php?name=$name&says=$says";
?>
The displayer.

Code: Select all

<?=$name?>
                                            says " 
                                            <?=$says?>
                                            "


Problem.
After submitting the form it just stops on mixin the php instead of fowarding to the namesays.php with the new inputs...why??? thx
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

It stops because you are not sending it anywhere.
mixin.php

Code: Select all

<form method="POST" action="namesays.php"> 
            <div align="center"><font face="Verdana" size="2">Name:&nbsp;</font> 
              <br> 
              <font face="Verdana" size="2"> 
              <input type="text" NAME="name"> 
              </font> <font face="Verdana" size="2"><br> 
    </font><font face="Verdana" size="2"><br> 
    Says:</font> <br> 
              <font face="Verdana" size="2"> 
              <textarea rows="8" NAME="says"></textarea> 
              </font> </div> 
            <p> 
              <input type="submit" value="Send" NAME="send"> 
              <input type="reset" value="Reset" name="B2"></form>
namesays.php

Code: Select all

<?echo "$name"; ?>  says " <? echo "$says"; ?> "
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

Post by Aaron »

Thx alot, i owe you, ill post a link to it later.
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

Post by Aaron »

DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

Glad it worx
Post Reply