PDA

View Full Version : pagename.php?field=bla help?



HotelUser
24-09-2006, 12:42 AM
Ive made a billing script that works with paypal. I want to let others use it but not without my knowing so. so I want to have a dropdown menu with the different email addresses it can use for people to pay money to but I want to call this field for example email. so i go to the address bla.php?email=oneoftheemailsonthedropdownlist and it doesnt work? any light would be apreciated!

- David

Dentafrice1
24-09-2006, 01:56 AM
http://www.habbonewsiefm.net/php/[email protected]

Like that?

HotelUser
24-09-2006, 10:34 AM
yes, so when you add [email protected] in the address it selects that in the form

Dentafrice1
24-09-2006, 12:42 PM
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="1" name="email">
<option><? echo $_GET[email]; ?></option>
</select><br>
<br>
<input type="submit" value="Next" name="B1"></p>
</form>

</body>

</html>
There ya go nothing hard Called by:

[email protected]

HotelUser
24-09-2006, 01:01 PM
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="1" name="email">
<option><? echo $_GET[email]; ?></option>
</select><br>
<br>
<input type="submit" value="Next" name="B1"></p>
</form>

</body>

</html>
There ya go nothing hard Called by:

[email protected]

I could do that. I ment so like you have

<option>email 1</option>
<option>email 2</option>
<option> email 3</option>

so then you go to theaddress.php?email=2 and it selects email 2. email=3 for three =1 for one. like that.

ClubTime
24-09-2006, 01:53 PM
so you could contact different people? or find your email to pay a bill or something?

HotelUser
24-09-2006, 02:10 PM
im making a paypal billing system. But I dont want just anyone using it. I am going to add the people who are allowed to use it in a <option>[email protected]</otion> so they could use it.

ClubTime
24-09-2006, 02:27 PM
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 4</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><select size="1" name="email">
<option><? echo $_GET[email]; ?></option>
</select><br>
<br>
<input type="submit" value="Next" name="B1"></p>
</form>

</body>

</html>

yes this is what you are looking for you just add the emails you want to a database tehn this selects and displays in an drop down menu

HotelUser
24-09-2006, 02:36 PM
but you can put any email in there. I dont want any. like i said i want it to select them from a list. not read it from a url.

YouFail
24-09-2006, 03:31 PM
Well then obviously you need to create a database to store the Emails in. Then in an Admin CP you can add and deleted emails. That would be the way you would need to do it.

Ini
24-09-2006, 03:45 PM
[email protected]


this is just the page name. just change that to the name of the above file.

Say you call the above file 'form.php'

then you just go to http://yoursitename/form.php

and it will be displayed

HotelUser
24-09-2006, 03:52 PM
both of you dont seem to get it :( thaanks though.



First i want it to read from a DROP down field. it reads off a drop down list to see the emails. then the ?email=oneoftheemailaddressesonthelist has to select one of the addresses in the drop down field. it cant read it from a database :S I dont dont how, way to complex. and i dont want it to beable to be anything. just read if from that DROP down list.

Want to hide these adverts? Register an account for free!