Post a Form from a variable

They have: 42 posts

Joined: Dec 2002

Hello All,

Here is what I want to do.
I know that it is all wrong (because it doesnt work) butI think it will give you an idea as to where I am going with this.

I just don't know enough php to get it right. As you can tell I am on page 20 of "The Book of PHP"

<?php
$a
=" pd_info=6036866441078262BAAEBFF88D2B6C8F6FAA187CC9
4651CF6FAEEDE81E1538AF/"
;
$b=" pd_info=2A43F8ADFB949F5B6483F84DF24831F6A6E899FF61
15CC998938DF5E4C73646F/"
;
$c=" pd_info=7BEB91582B70C17367B6878252B05A1751913A6CD3
10B3EF002AD45D63CE9759/"
;
?>

Send Once
Every Two Weeks
Once A Month

These are the working links that I want to put to work in a drop box list:

Send Once

Every Two Weeks

Once A Month

Does this make any sense at all?

Hopefully I know just enough PHP to get my point accross to you.

can this be done?

Any help would be AWESOME!!

NYColt

They have: 105 posts

Joined: Jan 2002

I "think" I follow you.

I would probably try to do it by sending the form to a site which automatically redirects to the link you're interested in. It's really the only solution I can think of.

======================

hack.php contains:
<?
Header("Location:http://auth.paysystems.com/sale.asp?$length");
?>

CPRhosting.com - CPR Hosting...Giving life to the web
Custom-made Hosting Plans starting at $2

They have: 28 posts

Joined: Feb 2003

Quote: Originally posted by NYColt

Send Once
Every Two Weeks
Once A Month

Taking this part in issolation, I think this represents one misunderstanding. $a, $b, etc, would suggest that you are trying to use php variables as options in the select.

However, you are outside of

<?php

?>
tags so those values are not replaced, you are merely passing 'dollar sign, letter' to the next page.

Try this:
Once A Month

They have: 42 posts

Joined: Dec 2002

Thanks,

Actually that is exactly what I wound up doing and it worked great.
As I said in my post I am VERY new to Php and not real clear on the correct syntax.

Someone in another forum gave me the same heads up as you and that worked. Again thanks for the look and see!

NYColt

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

A couple of other things. I am not sure about the variables;
$a=" pd_info=7BEB91582B70C17367B6878252B05A1751913A6CD3
10B3EF002AD45D63CE9759/";
For one, why are these variables so long. Also, you should avoid characters like / at the end since it will be viewed as a directory. It is also not advisable to have spaces in your url.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

They have: 28 posts

Joined: Feb 2003

That's what I thought too initially but it looks like he's marrying his script with an existing ASP script... the long, awkward urls are evidently necessary for the asp script.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.