fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.09s 54608KB
stdin
<!DOCTYPE html>
<html lang="ar">
<head>
  <meta charset="UTF-8">
  <title>نموذج تسجيل العملاء</title>
</head>
<body>
  <h2>سجل معلوماتك</h2>
  <form id="clientForm">
    <label>الاسم:</label><br>
    <input type="text" name="name" required><br><br>
    
    <label>البريد الإلكتروني:</label><br>
    <input type="email" name="email" required><br><br>
    
    <label>رقم الهاتف:</label><br>
    <input type="tel" name="phone" required><br><br>
    
    <button type="submit">إرسال</button>
  </form>

  <p id="statusMsg"></p>

  <script>
    document.getElementById('clientForm').addEventListener('submit', async function(e) {
      e.preventDefault();

      const form = e.target;
      const data = new FormData(form);
      
      // هنا خاصك تربط مع خدمة مثل FormSubmit أو EmailJS
      const response = await fetch("https://f...content-available-to-author-only...t.co/your@email.com", {
        method: "POST",
        body: data
      });

      if (response.ok) {
        document.getElementById("statusMsg").innerText = "تم الإرسال بنجاح!";
        form.reset();
      } else {
        document.getElementById("statusMsg").innerText = "وقع مشكل فالإرسال.";
      }
    });
  </script>
</body>
</html>
stdout
Standard output is empty