Results 1 to 13 of 13
Thread: A few questions
Sep 22, 2011, 23:29 #1
- Join Date
- Sep 2011
- 0 Post(s)
- 0 Thread(s)
A few questions
I have a few issues, my first is how would I go about adding in here so that if you're not logged in when you enter your name it would automatically add guest_ to it and when you're logged in it sets your username as it and you cannot change it.
I use the following to get usernames when logged in and below that is my form to submit a comment:
Just let me know what else is needed and I can provide.
<form name=\"submitcomment\" method=\"post\" action=\"submitcomment.php\" onSubmit=\" return form_Validator(this)\">
<th colspan=\"2\"><h3 class=\"formtitle\">Leave a comment:</h3></th>
<th scope=\"row\"><p class=\"req\">Name:</p></th>
<td><input class=\"form\" tabindex=\"1\" id=\"name\" name=\"name\" /></td>
<th scope=\"row\"><p class=\"req\">Comment:</p><br /></th>
<td><textarea class=\"formtext\" tabindex=\"4\" id=\"message\" name=\"message\" rows=\"10\" cols=\"50\"></textarea></td>
<td><input type=\"submit\" name=\"post\" class=\"submit\" value=\"Submit Comment\" /><br />
<p>Note: Any inappropriate content will be deleted. </p>
<input type=\"hidden\" name=\"comurl\" value=\"$comurl\" />
<input type=\"hidden\" name=\"comid2\" value=\"$comid2\" />
My second thing is I am unsure about how to go about having a date be set upon registration of users. The main reason I wanted this if it seemed easiest in my mind that I could have "Our newest member is: query for username by date, etc but if there is a better way to go about that and the registration date isn't needed just tell me. I thought I had the date going but every time it would just add the default to the database so i removed all of that for now but I can easily re add it.
Thank you very much in advance for any help that is provided.