By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,117 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,117 IT Pros & Developers. It's quick & easy.

Assign variable in php

P: 1
plz someone help me to write this code
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. ....
  3. $name="some name";
  4. ...
  5. <input id=\"a\" type=\"checkbox\" name=\"php_var\" value=\"1\" />";
  6. ..
  7. ..
  8. ?>
I want to assign $name to the name field in the above statement. i,e in the placer of php_var
Oct 16 '11 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,364
Put $name where php_var is.
Oct 16 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.