cm123077 Posted February 7, 2013 Share Posted February 7, 2013 I have some PHP code that creates a data collection form. At the moment, several of the fields are required or the form is not submitted. I want to change this for the "review title" and "star rating" fields. Can anyone help me with this? I'm sure I just need to change a simple false to a true, but I'm not sure where. Code snippet below. Thanks. http://pixelitforward.com/grapevine/ http://pastebin.com/BKUctcGt <----- Code pasted to pastebin Also, There is a set of quotation marks, the first of which you can see on the page. For some reason, the closing mark is not visible. Can someone help me figure out why? I see it in the code. Quote Link to comment https://forums.phpfreaks.com/topic/274138-how-to-disable-required-fields/ Share on other sites More sharing options...
Christian F. Posted February 7, 2013 Share Posted February 7, 2013 I*m afraid you need to go back to pastebin, and fix your code. It's plain unreadable, as it's missing all of the newlines. Quote Link to comment https://forums.phpfreaks.com/topic/274138-how-to-disable-required-fields/#findComment-1410736 Share on other sites More sharing options...
cm123077 Posted February 10, 2013 Author Share Posted February 10, 2013 It is very difficult to read. Unfortunately, that is not because of pastebin....thats the way it is actually written in the file. this is somethign someone else created,. Quote Link to comment https://forums.phpfreaks.com/topic/274138-how-to-disable-required-fields/#findComment-1411419 Share on other sites More sharing options...
tibberous Posted February 10, 2013 Share Posted February 10, 2013 It is very difficult to read. Unfortunately, that is not because of pastebin....thats the way it is actually written in the file. this is somethign someone else created,. ROFL! Have you tried opening it in UEStudio or Word to make sure there aren't end of line characters in the file? You gotta fix it to really be able to work on it - even if it takes you 20 minutes to indent by hand, just do it or find some better code to start from. Quote Link to comment https://forums.phpfreaks.com/topic/274138-how-to-disable-required-fields/#findComment-1411425 Share on other sites More sharing options...
Christian F. Posted February 10, 2013 Share Posted February 10, 2013 Lots of editors autoformat the code, Zend Studio is one of them (and the one I use). I recommend starting with one of them, and then going over with some manual adjustments as necessary. Quote Link to comment https://forums.phpfreaks.com/topic/274138-how-to-disable-required-fields/#findComment-1411445 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.