angelsRock Posted October 13, 2007 Share Posted October 13, 2007 i do this below to display picture and details the allignment is like this pic area price BIG BUTTON is it a good way to pass value as hidden in the form?? cos if i use form button.. it display a big button there.. anyway to minimise the button?? or u think better to change the button to word? if in word how to pass value thansk for advice if($row[photo1]!="") { echo'<td>'; echo"<img src=art/{$row[photo1]} height=100 width=130>"; echo'<br>'; echo "$row[area]"; echo'<br>'; echo "Rm "."$row[selling_price]"; echo "<br>"; echo'<form action=post-premiumreview.php method=post>'; echo"<input type=submit name=submit value='View Property $row[premPropertyID]'>"; echo"<input type=hidden name=id value=$row[premPropertyID]>"; echo'<form>'; echo'</td>'; } Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/ Share on other sites More sharing options...
trq Posted October 13, 2007 Share Posted October 13, 2007 Sorry, your question is pretty vague and seemingly unrelated to your subject. What exactly is your question? Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368386 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 <?php echo'<input type=hidden name=id value='$row[premPropertyID]'>'; echo'<input type=submit name=submit value=' echo"View Property"; $row[premPropertyID]'>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368391 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 <?php echo'<input type=hidden name=id value='$row[premPropertyID]'>'; echo'<input type=submit name=submit value=View' substr($row[premPropertyID],4)'>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368394 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 that should output View plus the first 4 or so letters of the property <?php echo'<input type=hidden name=id value='.substr($row[premPropertyID],4).'>'; echo'<input type=submit name=submit value=View' .substr($row[premPropertyID],4).'>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368400 Share on other sites More sharing options...
angelsRock Posted October 13, 2007 Author Share Posted October 13, 2007 can i make the button smaller and word smallelr/? Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368411 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 what i did was make it so it listed the first 4 letters of the property id plus view <?php echo'<input type=hidden name=id value=View'.substr($row[premPropertyID],4).'>'; echo'<input type=submit name=submit value=View' .substr($row[premPropertyID],4).'>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368412 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 if your looking for over all size try something like <HTML> <HEAD> <TITLE></TITLE> <STYLE type="text/css"> button-standard{ WIDTH: 200px;} </STYLE> </HEAD> <BODY> <input type="button" value="Hello" style="button-standard"> </BODY> </HTML> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368416 Share on other sites More sharing options...
angelsRock Posted October 13, 2007 Author Share Posted October 13, 2007 if that is the submit button ? i cant reduce the size of the submit button.. Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368434 Share on other sites More sharing options...
darkfreaks Posted October 13, 2007 Share Posted October 13, 2007 thats the CSS style to reduce the width of the button Edit: modify the width in the CSS style until it is the desired width <STYLE type="text/css"> button-standard{ WIDTH: 100px;} </STYLE> <?php echo'<input type=hidden name=id style=button-standard value=View'.substr($row[premPropertyID],4).'>'; echo'<input type=submit name=submit style=button-standard value=View' .substr($row[premPropertyID],4).'>'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/73039-ugly-allignment/#findComment-368435 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.