Skip to main content
Known Participant
October 2, 2006
Question

FORM not passing variables

  • October 2, 2006
  • 2 replies
  • 335 views
can anyone tell me why the variables for this form are not being passed? I can pass the variables in a link and then it works...
I think it may have something to do with the fact that the form is posting to a secure URL?

Here is the code that does not pass the variables:
<FORM METHOD="post" ACTION=" http://post.craigslist.org/nyc/S/clt/mnh/all">
<INPUT TYPE="hidden" NAME="PostingTitle" VALUE="this is the title">
<INPUT TYPE="submit" VALUE="Post!">

This code DOES post the variables:
https://post.craigslist.org/nyc/S/for/mnh/all?PostingTitle=testing

FYI: If I post to https instead of http via the form I get "page not found". Any workaround for this?

Thanks all!
    This topic has been closed for replies.

    2 replies

    LionelR1Author
    Known Participant
    October 3, 2006
    any ideas anyone?
    Inspiring
    October 2, 2006
    I would suspect that the target page is expecting get|url values, not
    post|form values.

    Try this
    <FORM METHOD="get" ACTION=" http://post.craigslist.org/nyc/S/clt/mnh/all"
    TARGET="_blank">
    <INPUT TYPE="hidden" NAME="PostingTitle" VALUE="this is the title">
    <INPUT TYPE="submit" VALUE="Post!">
    LionelR1Author
    Known Participant
    October 2, 2006
    Ok, now its passing the variables, however the variables over 100 characters are being truncated. See reference below:

    method="get":
    This method sends the form contents in the URL: URL?name=value&name=value. Note: If the form values contains non-ASCII characters or exceeds 100 characters you MUST use method="post".

    Since I cannot use method="post" what should I do? I must be able to pass variables that have more than 100 characters. Thanks.