How do i use vars in an array
Posted on
16th Feb 2014 07:03 pm by
admin
Hiya peeps!
How do I use a var in an array. You will see $id but it isnt working.
array('MAINCONTENT' => '<div id="registration"><form id="register" class="cssform" action="#" method="POST">
<b><font color="black" size="4">Personal Details</font></b>
<p>
<label for="firstname">First Name</label>
<input type="text" id="firstname" value="" autocomeplete="off" />
</p>
<p>
<label for="lastname">Last Name</label>
<input type="text" id="lastname" value="" autocomeplete="off" />
</p>
<p>
<label for="emailaddress">Email Address:</label>
<input type="text" id="emailaddress" value="" autocomeplete="off" />
</p>
<p>
<label for="password">Password:</label>
<input type="password" id="password" value="" autocomeplete="off" />
</p>
<p>
<label for="passwordconf">Confirm Password:</label>
<input type="password" id="passwordconf" value="" autocomeplete="off" />
</p>
<p>
<label for="phone">Phone:</label>
<input type="text" id="phone" value="" autocomeplete="off" />
</p>
<p>
<label for="address">Address:</label>
<input type="text" id="address" value="" autocomeplete="off" />
</p>
<p>
<label for="city">City:</label>
<input type="text" id="city" value="" autocomeplete="off" />
</p>
<p>
<label for="county">County:</label>
<input type="text" id="county" value="" autocomeplete="off" />
</p>
<p>
<label for="postcode">Postcode:</label>
<input type="text" id="postcode" value="" autocomeplete="off" />
</p>
<p></p>
<b><font color="black" size="4">Card Details</font></b>
<p>
<label for="accname">Name on card:</label>
<input type="text" id="accname" value="" autocomeplete="off" />
</p>
<p>
<label for="accnumber">Account number:</label>
<input type="text" id="accnumber" value="" autocomeplete="off" />
</p>
<p>
<label for="accsort">Account sort code:</label>
<input type="text" id="accsort" value="" autocomeplete="off" />
</p>
<p>
<label for="expiry">Expiry:</label>
<input type="text" id="expiry" value="" autocomeplete="off" />
</p>
<div style="margin-left: 200px;">
<input type="text" id="id" value="$id" autocomeplete="off" />
<input type="submit" value="Submit" />
</div>
</form></div>');
Many thanks
No comments posted yet
Your Answer:
Login to answer
254
50
Other forums
Auto fill in input value based on User_ID
Hello,
I'm looking form some input on the following problem.
User loads page ->
Help adding strtolower( to my in_array
strtolower i need to add it to this to work, iuno how.
Code: $moderators = array('Admin', 'ba
Question handling xml data
Hello,
I have sucessfull followed this tutorial
http://www.phpfreaks.com/tutorial/handlin
problem in program for counting no of chars using pointers
Hi all, I was trying to make a program which counts number of chars in a string using concpt of poin
Last Weeks sDate and eDate.
sDate - Start Date
eDate - End Date
I need to pull two dates for "Last Week" whi
How to store checkbox array in a session, and then be able to add to it?
I'm trying to store an array of checkbox values into a session array, sort of like a shopping cart,
Check Date/Time in PHP
What I need the code to check is that $reQuest is 24 hours in the past then return a time based on h
ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th
A little help in c#
i am doing a simple paint program using c# i want to draw with the mouse so i wrote the code of the
I need to increse 6hours more, and i don't know how???
I need to increse 6hours more, and i don't know how???
<tr>
<t