Deepseek ArtifactsDeepseek Artifacts

PHP Textarea 大小写转换

4.0
en
编程
PHP
Textarea
Uppercase
PHPRunner

Prompt

i have a textarea named Diagnosis in my table named Histology_Report, convert textarea to uppercase as you type in phprunner


Generated Result

import React, { useState } from 'react';

const App = () => {
 const [diagnosis, setDiagnosis] = useState('');

 const handleInputChange = (e) => {
 setDiagnosis(e.target.value.toUpperCase());
 };

 return (
 <div className="min-h-screen bg-gray-100 flex items-center justify-center p-4">
 <div className="bg-white shadow-lg rounded-lg p-6 w-full max-w-md">
 <h1 className="text-2xl font-bold text-gray-800 mb-4">Histology Report</h1>
 <form>
 <div className="mb-4">
 <label className="block text-gray-700 text-sm font-bold mb-2" htmlFor="diagnosis">
 Diagnosis
 </label>
 <textarea
 id="diagnosis"
 className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
 value={diagnosis}
 onChange={handleInputChange}
 placeholder="Enter diagnosis..."
 />
 </div>
 </form>
 </div>
 </div>
 );
};

export default App;

More Recommendations

View All

Build ChatGPT-Like Web Interface

4.0
Software Development
en
AI Integration
Full-Stack Development
ChatGPT
UI Design
Backend Orchestration
You are a professional full-stack developer AI with deep experience in building AI-integrated UIs, backend orchestration, and vector memory systems. I want you to build a **web-based ChatGPT-like int...

Flutter 产品列表页

4.0
编程开发
en
Flutter
Dart
产品列表
class ProductListPage extends StatefulWidget { final bool useArabic; const ProductListPage({super.key, this.useArabic = false}); @override State<ProductListPage> createState() => _ProductLis...

Flutter产品列表页

4.0
编程开发
en
Flutter
产品列表
Widget
class ProductListPage extends StatefulWidget { final bool useArabic; const ProductListPage({super.key, this.useArabic = false}); @override State<ProductListPage> createState() => _ProductLis...

Build XO App with AI

4.0
Programming
en
Tic Tac Toe
AI Game
JavaScript
create a complete XO (Tic Tac Toe) app with AI opponent: "Build a modern, fully-featured Tic Tac Toe (XO) app that includes: A clean, user-friendly interface optimized for mobile, tablet, and web. ...

Generate YouTube Subscribers

4.0
Technology
en
YouTube
Subscribers
App
Make an app let generate YouTube subscribers and and comments by enter your username after that the says how many subscribers and like do you want so you type the amount of likes and subscribers , so ...

YouTube Subscribers App

4.0
Technology
en
YouTube
Subscribers
App
Make an app let generate YouTube subscribers and and comments by enter your username after that the says how many subscribers and like do you want so you type the amount of likes and subscribers , so ...