Input in a form echoed |
Input in a form echoed |
tudsy |
Jun 27 2021, 08:32 AM
Post
#1
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
I am having trouble with this statement: echo '<input type="email" name="email" value="<?php echo $data["emailadd"]; ?>" placeholder = "Enter email address" Required>'; This statement is inside a form. Any help would be helpful. Thanks. |
CharlesEF |
Oct 26 2021, 01:26 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I think your problem is the double <?php ?> tags. You can't put php tags inside one another. Remove the 2nd php tag and it should work:
CODE echo '<input type="email" name="email" value="' . $data["emailadd"] . '" placeholder = "Enter email address" Required>'; |
Lo-Fi Version | Time is now: 27th April 2024 - 01:28 AM |