acey99
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by acey99
-
-
[!--quoteo(post=366231:date=Apr 18 2006, 02:56 PM:name=Vids)--][div class=\'quotetop\']QUOTE(Vids @ Apr 18 2006, 02:56 PM) [snapback]366231[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[code]
<form method="get" action="http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId=$_GET['id']">
<input type=text name=id value="">
<input type=submit value="Download">
</form>
[/code]
I have a problem. In the above form, When some one types the value in the text, and clicks on download, i want the browser to go to the following site
[a href=\"http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId=$id\" target=\"_blank\"]http://www.rcsb.org/pdb/downloadFile.do?fi...tureId=$id[/a]
where $_GET['id'] is what they typed in.
For Example, If they type in 1LYN, The browser must download
[a href=\"http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId=1LYN\" target=\"_blank\"]http://www.rcsb.org/pdb/downloadFile.do?fi...tructureId=1LYN[/a]
Only the end of the URL changes. Whats wrong with my code?
Any help will be appreciated!
[/quote]
<form method="get" action="http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId=$_GET['id']">
<input type=text name=id value="">
<input type=submit value="Download">
</form>
needs to be:
<form method="get" action="http://www.rcsb.org/pdb/downloadFile.do?fileFormat=pdb&compression=NO&structureId=<?php echo $_GET['id'] ?> ">
<input type=text name=id value="">
<input type=submit value="Download">
</form>
-
cause getimagesize doesn't use http protocol, it uses folder strucure:
eg:
c:\path\to\image\ (Windows)
or /path/to/image (Nix) -
Thanks !
-
ok you may not need gd lib (Makes/modifys images) but it's probably on, most php builds for windows are.
ok if your uploading to say c:\path\to\tempimg\
you need to contact the sys admin & have the permissions on \tempimg\
set to read, write, execute for all.
once that's done & you have the upload set correctly your image uploads should work.
-
what kind of server ?
Win / Nix? (mac is Nix)
you have GD lib installed ?
on your form are you using enctype="multipart/form-data" ?
you have a '<input type="hidden" name="MAX_FILE_SIZE" value="PUT ANY NUMBER HERE" />' defined in that form ?
where you uploading to?
best one:
are the permissions set ?
-
ok say I have the following:
$StandingsData[$i]['teamid']
$StandingsData[$i]['gamesplayed']
$StandingsData[$i]['points']
& want to sort this by say points, how do I do that ? -
ok I was told to use
$q=mysql_query("SELECT DATABASE()");
to return what db i'm on, the problem is I don't know how to use this in php,
any help?
10 Records per page. If there is >10 records, make a new page etc...
in PHP Coding Help
Posted