Php question

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

ihosty

******** RegularEstablished Member
Impact
4
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.

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;
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
is it outputting the HTML?
 
0
Close
nope the problem is its stripping the form tags
 
0
Close
nope the problem is its stripping the form tags

You do the bbcode CODE tags [ CODE ] and [ /CODE ] without the spaces
 
0
Close
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?
 
0
Close
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!
 
0
Close
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
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back