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 Like 50 Dislike
Previous forums Next forums
Other forums

Parse Error Help
Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

Passing Arguments to execlp()
I'm writing a program that mimics a unix shell. It's supposed to take commands with arguments and ex

post to self
Trying to get my form to submit to itself. However I am also trying to use an image for my submit bu

Mail Form receiving emails with no content
Hi, I hope someone here can help me.
I have a simple form in my website, it was working OK, after

timezone change with date()
so i put all my times for posts in my made from scratch forum(not phpbb3 or sm)
in my mysql db u

session checking in page load
hai all I have a web site is www.Mryas.com in this my login page is Page1.aspx its co

Accept only alpha characters
I've got this bit of code ready for accepting a phrase:

Code: if (!eregi ("", $_POS

serializing objects - loses methods - the point being?
Hi

I know that serializing an object will lose the methods. But whats the point in that? What

Got A Free Server :(
So I was given a free server

http://shopping.yahoo.com/p:Compaq%20ProLiant%201500%20Server:1

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash