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> Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/ 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> Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516191 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516198 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. Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516200 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... Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516206 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516208 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) Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516212 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516214 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516216 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516217 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 Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516229 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? Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516238 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>"; Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516242 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? Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516252 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>"; ?> Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516254 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!. Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516264 Share on other sites More sharing options...
dezkit Posted April 13, 2008 Share Posted April 13, 2008 i just edited the post! Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516265 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>"; ?> Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516266 Share on other sites More sharing options...
eaglelegend Posted April 13, 2008 Author Share Posted April 13, 2008 thanks! Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516267 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. Link to comment https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.