<a href = "[~12~]&selected=Webmaster">Contact</a>Does this work only if the SPForm snippet code is saved in document 12 ?
<form action="[~12~]&selectedItem=Webmaster"> <input type="submit" value="Contact us by email" /> </form>
I was able to determine precisely in which case the bug occurs.
It occurs if the character encoding is "UTF-8" and if there are comments.
My page being UTF-8 encoding, the solution was to remove all comments.
The bug does not occur if there are comments but the ANSI charset is used.
<a href = "[~12~]&selected=Webmaster">Contact</a>Does this work only if the SPForm snippet code is saved in document 12 ?
Or also if document 12 has a SPForm call + some other HTML code ?
Secondly, howto do if a button is used to call the form ?
<form action="[~12~]&selectedItem=Webmaster"> <input type="submit" value="Contact us by email" /> </form>
I tested above code, but it does not work.
Thanks.
<form action="[~12~]?selectedItem=Webmaster">
Can anyone tell me a better way?
System | Lexicon Management
Namespace: spform
Topic: default
Smiley
Sorry you had to do it the hard way.
Hi Bob, Thanks for your answers.
On the page telling that the email was sucessfully sent, I have some link which, when clicked, should redirect to the page where the user was. But I observe that it redirects to the first sibling in the same category or to the parent document (since it has a FirstChildRedirect).
In the structure below, document 11 has the spForm call.
If the email was sent, document 15 displays with a link to document 4.
--some category (2) (with a call to FirstChildRedirect)
|--first topic (4)
|--other documents
|--contact (11)
--sucessfull form processing (15)
Is this normal behaviour ?
Thanks.
$ref = getenv("HTTP_REFERER");
if (empty($ref)) {
$ref = $_SERVER["HTTP_REFERER"];
}
if(!empty($ref)) {
$_SESSION['origReferer'] = $ref;
}