Pedro Graca <hexkid@hotpop.com> wrote:[color=blue]
> Jimbo wrote:[color=green]
>> I am trying to right a script so that the "submit button" only appears when
>> certain criteria has been met. I have tried putting it in an IF statement,
>> without any luck. Maybe a function would allow me to do this?
>>
>><input type="Submit" value="Update">
>>
>> Any help would be greatly appreciated[/color][/color]
[color=blue]
> Why didn't the IF work?
> What was the error (if it was an error)?[/color]
[color=blue]
> <?php
> // ...
> if ($ok_to_output_the_submit_button) {
> echo '<input type="submit" value="Update"/>';
> }
> // ...
> ?>[/color]
[color=blue]
> --
> .sig[/color]
I get the idea he might not understand the concept
of server side and what echo is doing yet. ie that
you are dynamically emitting the html that client
side will see inside the <?php ... ?>
hopefully these are lightbulbs :)
-Walt
--
Reply to innkeepATcapitalDOTnet to email questions.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----