![]() |
![]() |
--gothan-- |
![]()
Post
#1
|
Goście ![]() |
Witam.
Jakim sposobem mogę sprawdzić czy początek adresu wpisanego do formularz ma np. http://www.youtube.com/? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 194 Pomógł: 26 Dołączył: 9.01.2011 Skąd: /dev/null Ostrzeżenie: (0%) ![]() ![]() |
Przy użyciu metody substr() w javascript, coś na kształt:
Pisane z palca więc mogłem się rąbnąć. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 1 233 Pomógł: 87 Dołączył: 6.03.2009 Ostrzeżenie: (40%) ![]() ![]() |
Jeśli od strony php, to ja bym dał parse_url
A od strony java script: http://phpjs.org/functions/parse_url:485 Ten post edytował wNogachSpisz 1.03.2011, 20:18:04 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 28.09.2025 - 16:47 |