eaglelegend Posted April 13, 2008 Share Posted April 13, 2008 whats wrong with my form code? ??? <form> <input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br> <input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br> <input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br> </form> Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 i don't think u need the form tags... <input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br> <input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br> <input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br> Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 still I have Parse error: syntax error, unexpected '=' in /misc/39/000/171/334/2/user/web/eaglelegend.com/mail2.php on line 10 sorry I forgot to mention the parse error with it Quote Link to comment Share on other sites More sharing options...
Kieran Menor Posted April 13, 2008 Share Posted April 13, 2008 Oh. In that case, you posted the wrong code. We need to see what's inside mail2.php. Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 no you don't (soz), the form IS where it asks for... Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 well post the first 11 lines of mail2.php Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; print "<h2>Message Center</h2>"; print " <input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br> <input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br> <input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br> first 13 (inc form) Quote Link to comment Share on other sites More sharing options...
Kieran Menor Posted April 13, 2008 Share Posted April 13, 2008 Oh, that's easy, then. <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; ?> <h2>Message Center</h2> <input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br> <input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br> <input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br> <?php Quote Link to comment Share on other sites More sharing options...
discomatt Posted April 13, 2008 Share Posted April 13, 2008 Use heredoc syntax or escape your double quotes within the print function's 'argument'. Or follow the post above Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; print "<h2>Message Center</h2>"; print " <input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box'><br> <input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box'><br> <input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box'><br>"; damn boom.dk beat me to it Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 Thanks guys, sorry for my n00b questions >_<. at least I will pay you back by helping people when im better at it XD Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 Just one thing before I gom, how do I adjust the size of the button, not with CSS? Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 <input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='font-size:22px'><br> just edit the "22" full code: <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; print "<h2>Message Center</h2>"; print " <input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='font-size:22px'><br> <input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='font-size:22px'><br> <input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='font-size:22px'><br>"; Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 thanks but I would like the size of the width of it, would it be width=100% or so? Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; print "<h2>Message Center</h2>"; print " <input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='width: 200px'><br> <input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='width: 200px'><br> <input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='width: 200px'><br>"; ?> Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 ok thanks. im afraid I will have to leave it here for today, bye! and thanks again!. Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 i just edited the post! Quote Link to comment Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 <?php include("header.php"); include("members.php"); $a = $_GET['action']; $u = $_COOKIE['ELv2']; print "<h2>Message Center</h2>"; print " <input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='width: 200px'><br> <input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='width: 200px'><br> <input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='width: 200px'><br>"; ?> Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 thanks! Quote Link to comment Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 It works thanks very much I appreciate it very much. Quote Link to comment 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.