looking for a point in the right direction
Posted: Thu Feb 05, 2009 6:43 pm
Just started using php this week, and have had success with creating a form i can enter data into, get it sent into a mysql table, and get it to display on various pages on my site. took me a while, but i got a pretty good grasp of how to do this.
now im ready for the next step, and have searched google and this site for a couple hours, but cant seem to find what im after. i think maybe i dont know the proper terms to search for what im after, maybe you could point me in the right direction for some tutorials
in the form i have now, it is taking 2 simple fields... a date, and a news item. what i would like, would be to have this form with the same two input fields, but a checkbox that would tell the script which table to send the data to. i would have two tables with the same structure, but want two different tables so i can pull one type of news to certain pages, and other news to other pages.
is it possible to have a checkbox under the form that indicates which table the data is to be sent to?
if you can point me in the right direction i would greatly appreciate it
this is the code i have for the table i set up and is working, just want to make the choice of which script the data is sent to:
thanks again
now im ready for the next step, and have searched google and this site for a couple hours, but cant seem to find what im after. i think maybe i dont know the proper terms to search for what im after, maybe you could point me in the right direction for some tutorials
in the form i have now, it is taking 2 simple fields... a date, and a news item. what i would like, would be to have this form with the same two input fields, but a checkbox that would tell the script which table to send the data to. i would have two tables with the same structure, but want two different tables so i can pull one type of news to certain pages, and other news to other pages.
is it possible to have a checkbox under the form that indicates which table the data is to be sent to?
if you can point me in the right direction i would greatly appreciate it
this is the code i have for the table i set up and is working, just want to make the choice of which script the data is sent to:
Code: Select all
<FORM ACTION="formindb.php" METHOD="POST" NAME="whatsnew_form">
<TABLE>
<TR>
<TD>Date:</TD>
<TD> <input type="text" name="date"></TD>
</TR>
<TR>
<TD>News:</TD> <TD>
<input type=text name="news" style="width: 371px; height: 22px"></TD>
</TR>
<TR>
<TD><input type="submit" value="Submit" name="Submit"></TD>
<TD><input type="reset" value="Reset" name="Reset"></TD>
</TR>
</TABLE>
</FORM>