| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| ******** Regular Join Date: Nov 2004
Posts: 340
![]() ![]() ![]() | php question Need a little help with my syntax, any that could help I would appreciate. The action doesnt actually work inside of this string but does outside of it. ????: NamePros.com http://www.namepros.com/programming/595426-php-question.html Any thoughts? case 'matt': $str = '<div id="vempty"><form enctype="multipart/form-data" action="upload.php" method="post"><input type="hidden" name="MAX_FILE_SIZE" value="10000000000" />Choose a file to upload: <input name="uploaded_file" type="file" /><input type="submit" value="Upload" /></form></div>'; $objResponse->addAssign('vmore','innerHTML', $str); break; |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Sep 2005
Posts: 471
![]() ![]() ![]() | is it outputting the HTML?
__________________ $2000 dollars worth of products for 2.50!!! http://webtoolsmembership.com http://rmember.tradebit.com |
| | |
| | #5 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i'm not sure what addAssign does, but innerHTML makes me think of it being a function that takes only what's inside of the html tags (similar to javascript). if you were to comment that out and simply output $str, what happens?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | #6 (permalink) |
| NamePros Member Join Date: Jul 2009
Posts: 103
![]() | Guys I have a good grip in PHP but never took this language professionally but now thinking to pursue further into professional field as this programming has vast and various jobs. I hope I can continue with this as my career. You suggestions will be appreciated! Thank you! |
| | |
| | #7 (permalink) |
| New Member Join Date: Jul 2009
Posts: 2
![]() | I think the addAssign() function has a filtering method that strips out the <form> tags for security reasons. What's the class of $objResponse ? You should read the documentation for addAssign, and see if there's a way to bypass the restrictions |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple PHP Question | Steve | Programming | 4 | 08-17-2006 08:25 AM |
| php question | pmnd1966 | Programming | 2 | 08-11-2006 01:04 PM |
| PHP question - pics not showing up in php | jaydons | Programming | 1 | 06-07-2005 09:23 PM |