Pavlos1316 Posted July 23, 2008 Share Posted July 23, 2008 Ok here we go again... <input name="Full_Name" type="text" id="Full_Name" size="50" maxlength="19" <?php if (isset($_POST['Full_Name'])) { echo 'value="'.$_POST['Full_Name'].'"'; } ?>/> This is working fine (leaving enter data in place if submition fails) BUT in my register page i see the /> after my textfield. ex. Name: textfield /> Any ideas how or what to fix? Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/ Share on other sites More sharing options...
JasonLewis Posted July 23, 2008 Share Posted July 23, 2008 Why not go like this: <input name="Full_Name" type="text" id="Full_Name" size="50" maxlength="19" value="<?php if (isset($_POST['Full_Name'])) { echo $_POST['Full_Name']; } ?>" /> Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597454 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 still... is there plus I get what ever I enter in value="" Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597466 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 Anyone ??? Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597650 Share on other sites More sharing options...
.josh Posted July 23, 2008 Share Posted July 23, 2008 please post the code around that line Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597656 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 <pre><span class="style71"> Full Name:</span> <input name="Full_Name" type="text" id="Full_Name" size="50" maxlength="19" <?php if (isset($_POST['Full_Name'])) { echo 'value="'.$_POST['Full_Name'].'"'; } ?> /><span class="style71"> Birthday: </span><input name="Birthday" type="text" id="Birthday" size="12" maxlength="10" <?php if(isset($_POST['Birthday'])) { echo 'value="'.$_POST['Birthday'].'"'; } ?>/> <span class="style75"> accounts</span> Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597682 Share on other sites More sharing options...
.josh Posted July 23, 2008 Share Posted July 23, 2008 Oh come on now, do you really think that that one line before it that has no actual code is going to be in any way useful to figuring out the problem? Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597712 Share on other sites More sharing options...
kenrbnsn Posted July 23, 2008 Share Posted July 23, 2008 I took the OP's original code and couldn't reproduce the problem. The code worked fine as is. Ken Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597740 Share on other sites More sharing options...
NathanLedet Posted July 23, 2008 Share Posted July 23, 2008 Where do you see this... /> ? is it displayed on a page? or is this data going into an e-mail? I noticed the same thing whenever testing a script out with my e-mail address. it would display that /> and I know my code is right...it's just Yahoo mail being silly... Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597775 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 Here is the full code.. I see it.. in my page ex I open www.mysite.com and I see: Name: [mytextfieldhere] /> <body> <table width="914" border="0" align="center"> <tr> <th scope="col"><form action="register.php" method="post" enctype="application/x-www-form-urlencoded" name="register" id="register"> <div align="center"> <div align="left"> <pre><span class="style71"> Full Name:</span> <input name="Full_Name" type="text" id="Full_Name" size="50" maxlength="19" <?php if (isset($_POST['Full_Name'])) { echo 'value="'.$_POST['Full_Name'].'"'; } ?> /><span class="style71"> Birthday: </span><input name="Birthday" type="text" id="Birthday" size="12" maxlength="10" <?php if(isset($_POST['Birthday'])) { echo 'value="'.$_POST['Birthday'].'"'; } ?>/> <span class="style75"> accounts</span> <span class="style69"> (dd-mm-yyyy)</span> <span class="style71">Mail:</span> <input name="Mail" type="text" size="89" maxlength="77" id="Mail" <?php if (isset($_POST['Mail'])) { echo 'value="'.$_POST['Mail'].'"'; } ?>/> <span class="style75">with false statements</span> <span class="style69"> (Street-Street No-Territory-Postal Code-Town-Country)</span> <span class="style71">E-mail:</span> <input name="E_Mail" type="text" size="30" maxlength="30" id="E_Mail" <?php if (isset($_POST['E_Mail'])) { echo 'value="'.$_POST['E_Mail'].'"'; } ?>/> <span class="style71">Phone No:</span> <input name="Phone_No" type="text" id="Phone_No" size="25" maxlength="19" <?php if (isset($_POST['Phone_No'])) { echo 'value="'.$_POST['Phone_No'].'"'; } ?>/> <span class="style75"> will be deleted</span></pre> <pre> <span class="style71">Username: </span><input name="Username" type="text" size="30" maxlength="10" id="Username" <?php if (isset($_POST['Username'])) { echo 'value="'.$_POST['Username'].'"'; } ?>/> <span class="style71">Password:</span> <input name="Password" type="password" size="25" maxlength="10" id="Password" <?php if (isset($_POST['Password'])) { echo 'value="'.$_POST['Password'].'"'; } ?>/> <span class="style75"> automatically!!!</span></pre> </div> </div> <div align="left"> <pre><span class="style75"> By submitting this form you agree to accept all <a href="terms and conditions.html" target="_new">Terms and Conditions</a></span> <input name="Submit" type="submit" id="button" onclick="this.form.post" value="Submit" /></pre> </div> </form></th> </tr> </table> </body> </html Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597778 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 Oh I want to add that before I add <?php if (isset($_POST['Full_Name'])) { echo 'value="'.$_POST['Full_Name'].'"'; } ?> everything was ok. So somewhere there must be the problem Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-597827 Share on other sites More sharing options...
Pavlos1316 Posted July 23, 2008 Author Share Posted July 23, 2008 isn't there someone who can help ??? it's my last problem!!! Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-598003 Share on other sites More sharing options...
Pavlos1316 Posted July 24, 2008 Author Share Posted July 24, 2008 Found it... I just had to rename my page from .html to .php!!! Thanks for trying to help. Quote Link to comment https://forums.phpfreaks.com/topic/116183-solved-small-promblem-i-think-dont-know-the-title-for-this/#findComment-598357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.