The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> staement
tudsy
post Aug 12 2016, 01:51 AM
Post #1


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



Hi


I have defined $person above this statement:

<input type='submit' name='submit' value='Click to view '.<?php echo $person ?>.'.'s '>


I was wondering what is wrong with this statement. Any help would be appreciated.

Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post Aug 12 2016, 07:21 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Boy, my eye is really going bad. Anyway, I would suggest the OP follow your example:
CODE
<input type="submit" name="submit" value="Click to view <?php echo $person;?>'s">
I always use double quotes with HTML attributes. I think the OP should also.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 08:03 PM