NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page php question

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 07-09-2009, 11:51 AM THREAD STARTER               #1 (permalink)
******** Regular
Join Date: Nov 2004
Posts: 340
ihosty is a jewel in the roughihosty is a jewel in the roughihosty is a jewel in the rough
 



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;
ihosty is offline   Reply With Quote
Old 07-12-2009, 04:11 AM   #2 (permalink)
NamePros Regular
Join Date: Sep 2005
Posts: 471
The_Inferno is a jewel in the roughThe_Inferno is a jewel in the roughThe_Inferno is a jewel in the rough
 




is it outputting the HTML?
__________________
$2000 dollars worth of products for 2.50!!! http://webtoolsmembership.com
http://rmember.tradebit.com
The_Inferno is offline   Reply With Quote
Old 07-12-2009, 05:28 PM THREAD STARTER               #3 (permalink)
******** Regular
Join Date: Nov 2004
Posts: 340
ihosty is a jewel in the roughihosty is a jewel in the roughihosty is a jewel in the rough
 



nope the problem is its stripping the form tags
ihosty is offline   Reply With Quote
Old 07-12-2009, 05:30 PM   #4 (permalink)
Programming Genius

 
djdeth's Avatar
Join Date: Aug 2003
Location: Las Vegas
Posts: 980
djdeth is a name known to alldjdeth is a name known to alldjdeth is a name known to alldjdeth is a name known to alldjdeth is a name known to alldjdeth is a name known to all
 



Baby Health Adoption Protect Our Planet Animal Cruelty
Originally Posted by ihosty View Post
nope the problem is its stripping the form tags
You do the bbcode CODE tags [ CODE ] and [ /CODE ] without the spaces
djdeth is offline   Reply With Quote
Old 07-12-2009, 10:04 PM   #5 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



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?
nasaboy007 is offline   Reply With Quote
Old 07-13-2009, 02:48 PM   #6 (permalink)
NamePros Member
Join Date: Jul 2009
Posts: 103
Sheikh Ahsan is an unknown quantity at this point
 



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!
Sheikh Ahsan is offline   Reply With Quote
Old 07-16-2009, 06:05 AM   #7 (permalink)
New Member
Join Date: Jul 2009
Posts: 2
fraktal is an unknown quantity at this point
 



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
fraktal is offline   Reply With Quote
Reply


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

 
All times are GMT -7. The time now is 02:30 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger