--- klikmaker <[EMAIL PROTECTED]> wrote:
> 
> OK, here's the code, as it was in the hierarchy of the rest of the tags:
> 
>                                       <form id="verifyWho" action="step1.php" 
> method="get"
> name="verifyWho">
>                                               <input type="hidden" 
> name="email" value="
>                                               <?PHP
>                                               echo $email;
>                                               ?>
>                                               ">
>                                               <input type="hidden" 
> name="pass" value="
>                                               <?PHP
>                                               echo $pass;
>                                               ?>
>                                               ">
> When I changed it to:
>                                       <form id="verifyWho" action="step1.php" 
> method="get"
> name="verifyWho">
>                                               <input type="hidden" 
> name="email" value="<?PHP echo $email;?>">
>                                               <input type="hidden" 
> name="pass" value="<?PHP echo $pass;?>">
> 
> it worked fine.

...And the reason is because of all those spaces between when the PHP code
execution ends (?>) and the "> that signifies the end of the value
attribute.  The instant the PHP code processing stops, raw html code
continues to be sent to the browser.  Thus, all those spaces, and even the
carriage-return, are being included at the end of whatever value PHP sends
and before the end-double-quotes.

Your solution of putting each of those processes on its own separate line
is a serviceable one, but maybe not so easy to scan with the eye.  Another
possibility would be the following....

<?php
echo "<input type='hidden' name='email' value='$email'>\r\n";
echo "<input type='hidden' name='pass' value='$pass'>\r\n";
?>

...and may I say I'm glad to see that the entire page of code isn't on one
line, which is what I thought had ended up being the case!!!  ;)


Michael Roush
[EMAIL PROTECTED]

"The power of the Web is in its universality. Access by everyone regardless of 
disability is an essential aspect." 
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


The PHP_mySQL group is dedicated to learn more about the PHP_mySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to