The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Form problems
tudsy
post Jul 1 2021, 07:35 AM
Post #1


Advanced Member
****

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



Hi

Is there anything wrong with these statements?:

$email =$data['emailadd'];

<input type="email" id="address" name="email" placeholder="Enter Email address" Required />


<script>document.getElementById("address").value = <?php echo $email; ?></script>


Any help will be appreciated. Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jul 1 2021, 11:14 AM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



What do you mean by "wrong"? Sorry, but you keep asking these disconnected questions, and it simply makes no sense to ask "are these wrong?" Depending on exactly where they appeared I think all of the above strings could be perfectly OK. But programs are not like cakes; you do not simply chuck the ingredients in, mix them, and bake for 45 minutes.

Do you understand the basic rules of PHP? How to include variable bits from PHP in the output web page?

Can you say for each of the above *exactly* what they are meant to do?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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

 



- Lo-Fi Version Time is now: 19th April 2024 - 07:50 PM