Thursday, December 10, 2009

Text box to url on submit?

I am making a very basic messaging client on a secure section of my web server. basically what i am doing is creating a text box which when submit is clicked it's value will be passed to my a php document which will save the text to a text file on my server. for example say someone was to enter "hello" into the text box, when they clicked submit, their browser would navigate to "www.domain.com/formlog.php?message=hell...



Could anyone come up with some code to help me please? Thanx in advanced! :P



Text box to url on submit?sunshine



Look at the php fwrite function to write the textfield variable to the text file.



Then use the php fread function in formlog.php to read the text file.



Use a php header redirect to navigate to formlog.php after submit.



You will have to have read write permission on the text file on your server.



That's all there is to it.



Text box to url on submit?star theater opera theater



probably something you like alot like xbox360 or your first 3 letters of your name and last
i don't think such code exists

No comments:

Post a Comment

 
skin allergy