Jump to content

Recommended Posts

i can't write that as you said within here. this my full code. i can't work it out still. im new to php help..

 

$tablerows .= '
	<form action="commissionrequest2.php?id='.$row['commission_id'].'" method="post">
	<table>
    			<tr>
    				<td><b>Product(s) description:</b>
    				<textarea input id="description" name="description" size="40" type="text" rows="4" cols="50"/></textarea></td>
    			</tr>
    			<tr>
    				<td><b>Other comments:</b>
    				<textarea input id="comments" name="comments" size="40" type="text" rows="4" cols="50" /></textarea></td>
    			</tr>
    				<td><b>Customer:</b><br />
    				<input id="customer" name="customer" size="30" type="text" value='.$row['title'] .' '. $row['firstname'] .' '. $row['surname'].' /></td>
    			</tr>
    			</tr>
    				<td><b>Telephone:</b><br />
    				<input id="telephone" name="telephone" size="30" type="text" value='.$row['telephone'].' /></td>
    			</tr>
    			</tr>
    				<td><b>Email:</b><br />
    				<input id="email" name="email" size="30" type="text" value='.$row['email'].' /></td>
    			</tr>
    	</table>
	<br /><br />
    	<input type="submit" value="Send Request" class="primary" />
    	</form>
    ';

Link to comment
https://forums.phpfreaks.com/topic/169648-how-do-i-add-a-space/#findComment-894991
Share on other sites

It looks like you are missing quotes signs around your value tag in the input field. There also shouldn't be any periods before your first $row and at the very end behind $row['surname'].

 

It should look something like this:

 

 <input id="customer" name="customer" size="30" type="text" value="<?php '$row['title'] . ' ' . $row['firstname'] . ' ' . $row['surname']'?>" />

 

Hope that helps. :)

Link to comment
https://forums.phpfreaks.com/topic/169648-how-do-i-add-a-space/#findComment-894999
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.