nicolette Posted July 1, 2010 Share Posted July 1, 2010 ok so here is a section of my code if (!isset($_POST['title']) || trim($_POST['title'])=="") { die ('Error: You must enter a course title.'); } else { $title = $_POST['title']; echo "<p><span style='font-weight:bold'>Course Title</span><span style='font-weight:normal'> : $title</span></p>"; } if (!isset($_POST['instname']) || trim($_POST['instname'])=="") { die ('Error: You must enter an instructor name.'); } else { $instname = $_POST['instname']; print "<p><span style='font-weight:bold'>Instructor</span><span style='font-weight:normal; text-indent:500px'>: $instname</span></p>"; }if (!isset($_POST['phn']) || trim($_POST['phn'])=="") { die ('Error: You must enter a phone number.'); } else { $phn = $_POST['phn']; print "<p><span style='font-weight:bold'>Phone </span><span style='font-weight:normal'>\t$phn</span></p>"; } ok now obviously the first else statement is bad with all the I know but that is the problem I am running into I tried a css style on the next one and that isn't indenting and on the last one I have tried using \t although I don't know if it needs "", '', or nothing in this situation I tried all variations and I couldn't get that to work either can someone assist I need the output to look like this Course Title : Whatever Instructor : Whatever etc... Link to comment https://forums.phpfreaks.com/topic/206369-need-help-with-making-an-indent-or-tab/ Share on other sites More sharing options...
nicolette Posted July 1, 2010 Author Share Posted July 1, 2010 I am still playing with the css text-indent but I still haven't figured it out yet. does anyone have any idea's? Link to comment https://forums.phpfreaks.com/topic/206369-need-help-with-making-an-indent-or-tab/#findComment-1079983 Share on other sites More sharing options...
haku Posted July 2, 2010 Share Posted July 2, 2010 I personally don't look at posts when someone posts PHP in the HTML section. Link to comment https://forums.phpfreaks.com/topic/206369-need-help-with-making-an-indent-or-tab/#findComment-1080044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.