Posted by none on 10/15/05 04:19
Thanks for the answer... new questions coming soon :)
Jon ha scritto:
> Yeah, that'll help with validation. I think on the application I wrote in
> this in I was validating data before it goes into the DB and eliminating any
> possible character problems. I don't remember though - probably best to use
> htmlspecialchars just in case and not be lazy like me :p
> "Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in message
> news:diosv4$15l$1@news.onet.pl...
>
>>><form><select name="stuff">
>>><?php while($row=mysql_fetch_array($sqlResults)){
>>>?>
>>><option value<?php = $row['dataYouWantToOutput'];?></option>
>>><?php
>>>};
>>>?>
>>
>>
>>Should be something like:
>>
>><form><select name="stuff">
>><?php while($row=mysql_fetch_array($sqlResults)){
>>?>
>><option><?php echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?></option>
>><?php
>>};
>>?>
>></select>
>></form>
>>
>>or:
>>
>><form><select name="stuff">
>><?php while($row=mysql_fetch_array($sqlResults)){
>>?>
>><option value="<?php
>>echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?>"><?php echo htmlspecialchars( $row['dataYouWantToOutput'] );
>>?></option>
>><?php
>>};
>>?>
>></select>
>></form>
>>
>>Hilarion
>>
>
>
>
Navigation:
[Reply to this message]
|