Jump to content

How To Use StripSlashes with Echo in Form Field


phpBeginner06

Recommended Posts

Does anyone know how use stripslashes with a echo in form field, if it has had a variable passed to it thought a text link/url (not passed by form)?

I tried this inside the value of my form field:

[code]<? echo stripslashes(standardfeatures); ?>[/code]

but it just give the field a value of:

[quoate]stripslashed(Driver and Passenger Airbags, Air Conditioning, Manufacture\'s Manuals)[/quoate]

The variable from the database is actually this:

[quoate]Driver and Passenger Airbags, Air Conditioning, Manufacture's Manuals[/quoate]

Is there any way to echo or use stripslash for a echo; once a var has been passed from a text link (not a form), without using:

[code]@$standardfeature="stripslashes($_GET['standardfeatures'])";[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.