DarrenReeder Posted January 18, 2010 Share Posted January 18, 2010 Hello...On my site which i am making for my school project i have got a profile page. (my site is like a snooker version of facebook)...on the profile page you have a section that says 'about me' and a few other little things...i want to know how i can make it so when u click a 'button' or somthing..it converts ur 'about me' section into a Textarea box (like a form box) so u can edit it then update it... THe only thing i can think of is by making a seperate page for the whole thing, but id like to do it the way i said...so i just want to know how i can do this with php (Thats if i can...) Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/ Share on other sites More sharing options...
laffin Posted January 18, 2010 Share Posted January 18, 2010 U cant do this with php, u would use javascript. Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/#findComment-996883 Share on other sites More sharing options...
DarrenReeder Posted January 18, 2010 Author Share Posted January 18, 2010 damm, had a feeling id have trouble with this... How long would it take to learn javascript? and is this easy to make? Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/#findComment-996885 Share on other sites More sharing options...
oni-kun Posted January 18, 2010 Share Posted January 18, 2010 damm, had a feeling id have trouble with this... How long would it take to learn javascript? and is this easy to make? I've not personally learnt Javascript, but it's similarity to PHP (and well, any language) makes it not too hard. Your JS query requires AJAX though, a (slightly) complex side of JS, I'd look into tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/#findComment-996897 Share on other sites More sharing options...
laffin Posted January 18, 2010 Share Posted January 18, 2010 No Ajax is required, this is more of a dynamic form situation. Since form elements can be disabled, and javascript can add other form elements and enable elements. its just a matter of piecing together all the parts. U can try google: javascript dynamic forms to get an idea of what ppl have done. Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/#findComment-996914 Share on other sites More sharing options...
DarrenReeder Posted January 18, 2010 Author Share Posted January 18, 2010 i recon ill just make a 'Edit Profile Page' - although if i finish it in time and still have alot of time left on my project..ill learn JS- thanks everyone ive posted my site on the Critic section of php freaks Quote Link to comment https://forums.phpfreaks.com/topic/188830-can-i-make-this-text-form-box-with-php/#findComment-996918 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.