7
7
7rulnik2015-01-15 20:09:07
PHP
7rulnik, 2015-01-15 20:09:07

How to add a title to a message?

Made sending messages by this method. There are N pages with the same form. How to get and include in the message the title of the page from which the message is being sent? As an option, a hidden input, but I don’t really like this option.
https://scotch.io/tutorials/submitting-ajax-forms-...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2015-01-15
@7rulnik

https://developer.mozilla.org/en-US/docs/Web/API/d...javascript.ru/window-location
_

X
xmoonlight, 2015-01-15
@xmoonlight

hidden input via AJAX?!

A
Alexander, 2015-01-16
@AlexBlack666

<? echo '<script>document.title</script>'; ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question