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
unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_
Can anyone view my code and tell me why im getting the error:
Parse error: syntax error, unexpect
trim function issues
Hi guys, total noob here...
So I've been tinkering around with a html and am using php to em
Opening Multiple Files/Links in Order.
I want to open links in order/one-by-one and check each for a specific string.
Example:
I
how to timeout $doc = new DOMDocument()->load($url)
I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than
PHP and Javascript
Hi Guys,
Im trying to load the contents of an html file into a text area for editing, this is
Saving PHP output as a file
I wondered if anyone knows how to save the rendered output of a PHP script as a file?
I have
reading partial code from external site
Hi,
I am trying to write a script for my website to get an article from an external website.
Multi image upload
I have a gallery to build and want to build a dynamic upload form to allow for $var number of fields
How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in
AJAX form submit
I recently built a form that submits data to my database with an ajax function that is called throug