Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Analyze My Mod_rewrite Logic


I’m new to mod_rewrite but already like what it can do with it! I just want to make sure I have it right before I go LIVE and search engines pay a visit. Trying to come up with as useful and “pretty” URL’s for my content module in the CMS I use.

My goal was to be able to reach main categories in the CMS with typing the name of the category without any numbers or file extensions.

I wanted that a URL like: mydomain.com/trails could be promoted (for instance in magazine advertising) and accessed. Code:




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Restore Just Does Analyze
Why is it out of the last 4 database backups I have only the oldest one will restore. The others will only analyze. All it says is "The analyze operation finished successfully". How can I force it to restore from the latest backup? No table changes have been made between the backups. There is some data that has changed.

View Replies !   View Related
Analyze Current URL For A Directory?
I need to hide a part of my site from certain pages, all of which can be found in the projects/ directory. How can I test for this being in the current URL?

View Replies !   View Related
Analyze And Read In Html File
what i want is something similar to th simple-xml extension of php, but for
html.

I have to analyze and read in certain tags from a html file in a comfortable
manner.
Is there a php extension/library which makes this possible?

View Replies !   View Related
Upload File, Analyze, Insert Data
How would I make a page where I can select an XML file on my computer, upload it and have the data inserted into a mysql database?

View Replies !   View Related
Saving A Session So That The User Can Retrieve It And/or The Administrator Can Analyze It
I have a basic site where people can put together a shopping basket using a session.

I was wondering if it is possible to save this details so that

a. the user can retrieve it later
b. the administrator can view at the data and analyse it

I saw the following site:

Is this the way to go, or do you recommend a different course of action?

View Replies !   View Related
How To Analyze MySQL Performance In Pages (memory Problems)
Working with PHP 4.4.2 and MySQL 4.1.19, I'm suffering some memory problems on my server (memory allocations, slowness), and would like to know if my mySQL queries are well-designed in terms of memory.

My website allow users to register and to share items with several degrees of privacity, so each time someone accesses webpages I must check which items are public or not, by using SQL queries. I've written code by myself so I may've done some mistakes.

View Replies !   View Related
Regular Expressions - Analyze Html File For Emails
i have a html file, and i need to analyze it for emails in it
often string looks like this:

<a href='mailto:mail@example.ru'>SOME TEXT</a>
i need to cut off this mail and text

View Replies !   View Related
Logic Help
Here's the deal:

I have a page the lists "patterns". In this page is a link that opens up a window that displays ALL the "threads" available in the database.


"Threads" need to be related to "patterns". What I mean by this is that I need the ability to select (with a checkbox) the thread listing for when I process the form, the patternID and the threadID are saved in a table.

In addition to.. I need to be able to select ( from a checkbox) whether or not this thread is available for direct ordering or not.

Here's some code:

View Replies !   View Related
And/Or Logic
I am having trouble with some and/or logic. I am using PHP to connect to a MSSQL server. I have the following in a select statement:

where TT.fkBranchid=@BranchID
and TT.DateCreated >= '{$begdate}' and TT.DateCreated < '{$enddate}'
and (Left(d.instorecode,3)=ò•' or d.id=âÊ')
and (P.code not in (?', ?'))

In the third line of the where statement, I have that "or" section. I want all of the logic to run, except for the "Left(d.instore,3)=ò•'" and the "d.id=âÊ'" logic. It does not seem to work the way I have it coded right now. Would somebody be able to tell me what I am doing wrong? And, what the preferred method would be?

View Replies !   View Related
Another Logic
I am using the folloiwng code in order to delete a user and then delete data from another table which is related by the username field. PHP Code:

<?php
$q = "select Username from `table` where UserID = '$_POST['userid'];
$result = mysql_query($q) or die(mysql_error());
if(mysql_num_rows($result)){
$row = mysql_fetch_array($result);
$q2 = "Delete from `table2` WHERE Username = {$row['username']}";
$result2 = mysql_query($q2) or die(mysql_error());
?>

But then I get the the following error where jess is an actual username. Anyi deas why this is happening?

View Replies !   View Related
Php Logic
I don't have a question about php coding, just about php logic. I want to create a registration page that self processes itself. if ( submit. blah bla blah) else (show form) Problem is I want to have error reporting? How can I use this structure to check for any errors and if there is an error, it shows the form and the error?

View Replies !   View Related
Date Logic
I have two unix timestamps which I test as follows:
if ($currentdt > $targettime){
some action
}if ($currentdt > $targettime){
other action}

The problem is they test true even though I echo values to the screen and they are different.

View Replies !   View Related
Math Logic
I'm writing a script to do some calculations on gambling odds. I don't have a direct PHP question, but a math question related to my script. There are some smart people around here so I thought I'd ask. If someone can answer my question and explain the logic that would be great.

The house edge is 1.41% and a winning bet pays 2:1. However, for every $1 lost on the game, the player only has to pay $.55. Given these circumstances, what is the modified house edge?

View Replies !   View Related
Cookie Logic
Since cookies are stored on the client side, I was wondering how a php script (which runs on a serverside) could ever execute a script like below:
_____________________________
if (isset($_COOKIE["jtotwname"]))
{
$value = $_COOKIE["jtotwname"];
}
_____________________________
Basically, how can the server side know, while running the script above, if the client has a specific cookie ?, asumming information in the cookie file arent's transferred over the internet.

View Replies !   View Related
Readdir Logic..
I want to use readdir to get all the filenames from a particular directory. more importantly, the number of files because I have created the files and know their naming convention. I have the create function separate from what I am working on now which is why I do not just use the information I already have. Inside my create function I return the directory name I created instead of, for instance an array of the filenames.

(now that I think of it... i could create an array with the name of the directory and the rest of the array the filenames...) Anyways, continuing on with my original thoughts.If I have the following pseudo code:

while (readdir($dir))
{
$files[$count] = readdir($dir) // readdir would actually be the 2nd file now since I already advanced it in the if statement, no?
}

So I said ok i'll create a flag instead and set it to false once readdir returns false but I still can't capture the response from readdir without losing the file name. Should I have a while loop once to increment a counter to determine how many files are in the directory and then have a for loop incrementing up until the counter to use readdir to capture the file names?

View Replies !   View Related
Logic Issues
I'm trying to add a search function to my website, and I'm not real sure how to go about it. I have a loaded database on my site with the following fields:

id //(primary key)
title //(image title)
page //(name of the page the image is on)
thumb //(name of the thumbnail image)
kywords //(keywords that describe the image)

The kywords field has many keywords separated by commas. I used commas to prevent the end of one word and the beginning of the next from accidentally giving a false match. Code:

View Replies !   View Related
Logic Error
When I run this code it works

if('a'=='b'){run some code}

but as soon as I add an or operator it runs the code every time whether there is a match or not.

if('a'=='b'||'c'){run some code}

The code now runs for all values of a.The actual code that I am using is this

if($_GET['monthBefore']=='september_2007' || 'august_2007'){echo "<script> js</script>";}

Get does contain a string and the right one. I have spent hours on this and am really puzzled.

View Replies !   View Related
Another Logic Problem
I am currently displaying data from a database as follows, however I would like to be able to add another column to the table which displays a button so a user can download a file that is related to that record,

however there is not always a file available which is indicated in the database as either yes or no. If it is yes i would like the download link to be displayed in the new column as a button or left blank if no file has been uploaded. Code:

View Replies !   View Related
Logic Problem
I am currently displaying data from a database as follows, however I would like to be able to add another column to the table which displays a button so a user can download a file that is related to that record,

however there is not always a file available which is indicated in the database as either yes or no. If it is yes i would like the download link to be displayed in the new column as a button or left blank if no file has been uploaded. Code:

View Replies !   View Related
Logic For This Coding
suggest me the logic for the following :

Now, I have the number stored in variable 'x' , 'y' and 'z' which is to be matched with the four set of numbers say four arrays. I want to match this 'x' , y and 'z' with each array and print the output for each number matched. note : no numbers or array will be of two digit. also the array set is different for each variable 'x' and 'x' is ranging from 1 to 9.

i.e if x=1; the array set will be
a1={2,3,} a2={9,8} a3={4,7,6} a4={5}

the x and y can be anything ranging from 1 to 9.
now suppose if y=6 and z=2 then a1 and a3 should selected and the output should be the message which is written in number six and number 2. and i f x is different the array set will be different. can you suggest me simpler logic to do this.

View Replies !   View Related
Logic Problem....
However, the javascript menus I am using are placed on the page based on thier absolute values, in pixels, from the top left of the brower. These are passed into the header in javascript.

So I need to write a php program to write this javascript. IT needs to query the database, and then based on where the image falls in the grid, assign a top and left value for it Code:

View Replies !   View Related
Web Forms - Logic For What Happens After
The area of php that i just cant seem to grasp conceptually at this point is capturing user input with webforms.

I understand the webforms themselves and how each field captures values and sets them to variables. I also understand form validation Where i lose it is when a user hits the submit button.

1) Please view my attached jpeg, i put a clear mini sample diagram of whats going on with my site.

If i wanted to create a very simple webform that just added one element into my single dimension array ($ar_price) what would the code be for that.

Also, on my diagram, is it possible to avoid the multi pages and just have one dynamic page that could accomplish this, if so what route would you recommend.

View Replies !   View Related
Logic Using Multiple DBs
I am trying to pull for 5 different databases based upon one thing, the userID, this is the first time I have tried a select statment of such a complexity, but from what I have been reading in this forum I think it should work:

<?php
db_connect();
$sql = "SELECT *
FROM payments, invoices, siteBin, sites
WHERE payments.invoiceID=invoices.invoiceID
AND invoices.siteID=sites.siteID
AND siteBin.userID=$userID
AND sites.siteID=siteBin.siteID
;";
$query = mysql_query($sql) or die (mysql_error());
while( $result = mysql_fetch_array($query)){
?>

View Replies !   View Related
Table Sorting Logic
I have a table with 4 columns. I have each column header acting as an asc/des sort on that column. I also have 4 filters that a user can apply to the table.

What is supposed to happen....
If a user clicks on a column header twice in a row ( or 100 times in a row) the table will toggle back and forth between an asc/des sort on that column. If a user clicks on a "new" column header, the sort will reset to the initial asc/des value assigned to that column instead of just toggling from the current setting. If a user clicks on a filter, the results will be displayed with the "current" sorting method.

What is actually happening....
Everything seems to be working fine except when a user clicks on the same filter link more than once. In that case, the sort toggles between asc /des, which I do not want to happen. PHP Code:

View Replies !   View Related
Smarty Caching Logic
How long does a $smarty->clear_cache(..., ...) function take? More specifically, how long would it take to run 300 or more of them?

I'm implementing Smarty's caching in my application, and when a user lists himself in three hundred cities, I need to clear the cache for those 300 city pages. So should I run a loop that clears the cache for all those city pages, or should I let the cached pages expire every five or ten minutes? Or is there some way I can take advantage of cache groups (the abc thing as described in the manual)? Maybe there's some way I can pass an array of $compile_id's to clear_cache()...

View Replies !   View Related
Cron Job Script Logic
How should I "map" a script that will every 48 hours delete a table content by selecting only users registered more than 48 hours ago.
Be advised that the script will have to pick and chose within a multiple users table

I do not look for the script but I look for its logic.

How should I built that script:
Read a created timestamp and del timestamp+48H
Or any other ways?

View Replies !   View Related
Separating Logic And Presentation
I hear about the statement "Separating Logic and Presentation" a lot, but I'm not really sure what it means. Does it just mean to have all your HTML in separate functions so that when you make code it's 100% PHP in one file and another files is just a whole lot of functions filled with HTML? PHP Code:

View Replies !   View Related
Logic Design Flow
I'm having a brain freeze on how to go about creating the logic for
evenly distributing a group of items in rotation through multiple
iterations. I'm particularly looking for logic flow help and not
necessarily syntax examples.

Let's say we have a database table with the following pieces of fruit:

apple
apple
banana
orange
pear
peach

First off, I need to move any duplicate pieces of fruit to the end of
the list:

apple
banana
orange
pear
peach
apple

Note the second apple goes to the back of the line.

Now let's say there's 5 baskets to distribute the fruit in. Each basket
can only contain one unique piece of fruit at a time. So on the first
iteration the baskets look like this:

basket1: apple
basket2: banana
basket3: orange
basket4: pear
basket5: peach
apple (no basket)

I now need to shift every piece of unique fruit up by one, bringing the
5th piece to the front of the line. Note that second apple stills stays
at the back of the line because it's a duplicate.

peach
apple
banana
orange
pear
apple

The next basket distribution iteration looks like this:

basket1: peach
basket2: apple
basket3: banana
basket4: orange
basket5: pear
apple (no basket)

....and so on. The second apple would only be added to the rotation if 1)
one of the pieces of fruit gets eaten (deleted) OR 2) a sixth basket is
added to the rotation.

Here's the flow.

1) query table for data, ORDER BY fruit (alphabetically)
2) loop through recordset array and move any duplicates to the back
(exp. compare 1 with 2, if 2 equals 1, move 2 to the end)
3) distribute fruit in baskets
4) move fruit 1 to the back, but ahead of the duplicates
5) go to step 3

How much of the sorting (and resorting) requirements can be done in the
query? Would it be easier to re-query on each iteration or manipulate
the existing recordset array?

View Replies !   View Related
Simple Logic: If NOT (preg_match
This works great except it does exactly the opposite of what I want it to do. PHP Code:

View Replies !   View Related
Wrong If Statement Logic
I am trying to upload images using either exec command.
The file is uploaded ok.
My script:

<html>
<head>
<title>Picture Upload Page</title>
<?php

if ($_POST['upload']=="upload") {

$fnamefrom = ' ()/\%"'."'^&*@!`~";
$fnameto = "+__________+___";
$fname = strtr($pic_name,$fnamefrom,$fnameto);

if ($pic_size > 0) {
$upload_file = system("/bin/cp $pic
/mnt/raid/WWWROOT/lexon.ws/imgstore/$fname", $retval);

if ($upload_file) {
$goodsave = 1;
}
else {
echo "error while uploading files";
};

};
}

else {echo "no submit";};

?>
</head>
<body>
<?php
if ($goodsave == 1) {
?>
<p>The picture, $pic, was successfully saved to the server.</p>
<?php
}
else {echo "NOT SAVED!!!";};
?>

<form action="<?php echo $PHP_SELF?>" method="post"
enctype="multipart/form-data">
<input type="file" name="pic" size="25">
<input type="submit" name="upload" value="upload">
</form>

</body>
</html>

I still receive error NOT SAVED and error uploading files.
Is something wrong with my logic.

View Replies !   View Related
Simple Logic Question
This is a pretty silly one, I just can't get my head around it.

I have a table of artices, with a row "isPremium", meaning it's
content available only to paid users. In my corresponding user table I
have a row "user_group" with various levels signifying access rights.

In my file displayarticle.php I'm trying to process this. What I want
is for the system to check the article ID, if it's premium, check the
user's credentials (and if they're not okay, print some kind of
error), and if it's not premium, just display it as normal.

My efforts to do this have given errors due to my nested if statements
and I can't seem to think of a solution that doesn't involve my (200
line) display article code being repeated for both possible outcomes
(eg, isPremium = true or false). Can anyone point out the blindingly
obvious solution I'm missing?

View Replies !   View Related
Logic Template Methods?
I am in the process of recoding a rather complex DB system into PHP
and am wondering if there is an alternative way I could template my
logic so I don't have to re-dcode the logic of the various CRUD
methods and an action forms.

Currently I have two files, the custom code and the logic template:

(custom code file) The custom bits of code that fall within the common
logic are in various strings containing code segments (i.e. POST
filter, validation, create record(s), update data, GET filter, delete
confirm, flush data read in db record, etc.)

(included template) next I include the template file which has the
common logic code for that type of form and uses eval()s on the above
strings in appropriate places.

(custom code file) and finish with the HTML input form.

It has made debugging and development easier, but I wonder if there is
a better way that I haven't discovered in PHP, what do you guys do?

View Replies !   View Related
Search Engine Logic
I am builing a very robust search engine for my website. the problem i am running into is that when some one types in for example line 6 pod pro. i want the engine to pull out line 6 as it is the manufacturer. that way i can display all of the pod pro's for line 6. i got that part taken care of with this function PHP Code:

View Replies !   View Related
Debugging Column Logic
In a table displaying data on products in a given category I am trying to print table columns only if that column will be needed. However not all products in the category will have data for every cell, so for each product I want to display a table cell with data if it exists, otherwise display an empty cell. PHP Code:

View Replies !   View Related
Swf Game Mysql Logic?
I am making a 4 in a row game in flash MX.

Wel i do it a bit pimitief like sending respons from the swf file to the
php-mysql handler to see if the other user has make a move.

I ask for some guidenes i am new on this.

i thougth to make 3 tables

one table 4rowsession 4 fields
-gameid
-user
-userid
-date+time

When the first time the game starts i send the beginer player
name+(date+time+);
i send back the game session id (date+time+player1)=
10:11:2003:16:00:00PLAYER1
this is the unice game id that the other user must log in too so that the
game swf know wich player the oppement is.

then other table 4rowpalyers
-gameid
-user
-moves (must contain all the moves) or must i make 23 fields with move1
move2 move3 ?

the other tables i am not sure..

maybe this is very simple.. but i want the swfgame to see if the other user
has responed in 1 minute, to see what the other player move is from the
database



View Replies !   View Related
Logic On Creating Tables
I am having a problem with my logic on creating these tables I want to have my home page so that people can add and remove sections that are displayed on that page. I also want them to be able to change the position of the sections. But i dont know how i should set up the db tables.. Code:

View Replies !   View Related
Found Error In My Logic
One contains posts, another replies to those posts. I was trying to draw a list of posts based on a particular criteria and if the user commented on a post mark this line in my output table. If the user got a reply on his/her comment mark it again with a different icon. Code:

View Replies !   View Related
Firefox And Header() Logic
I have the following, which works just fine in IE:

header('location:'.$redirect);

Where $redirect is = the page they came from. What do I have to do differently to accomodate Firefox? I have this on another page and it seems to work just fine:

header('location:http://www.cnn.com');

View Replies !   View Related
Logic Error With While Loop
I went wrong with this while loop as he data is not being sorted properly as all the years are not accounted for? Code:

View Replies !   View Related
Multi-user Logic
I'm building a shopping cart system and although I am certainly familiar with PHP and MySQL, I've never actually built one before. I just wanted some of you experts to see if you can tell me if my approach will allow multi-user functionality. Here it is:

When a user hits the buy button, the contents of the shopping cart gets placed in the database. The order gets placed in a table that has an auto_increment ID field. Once the order is placed in the table, the very next chunk of code, selects every order from the table sorted by ID from small to large.

The last ID on the list is the new ID which I then proceed to use to finish off the purchase. I'm concerned that if several people are all placing orders simultaneously, is there a chance that the orders could get crossed?

View Replies !   View Related
Small Logic Problem
ive got 12 images (jewellery stones) with related description. each stone represents a month of the year.

im trying to create a interactive module where the user could type his/ her month of birth and the related stone <td> will be highlited (simple indication like a border around the <td>) the all thing is on the same page, and once the user submit his / her month of birth the page will just refresh and position itself on the related stone.

the code so far retrieve a $month var which is the month number but...
im getting an error message saying: Code:

View Replies !   View Related
Logic In Switch Statement?
I was wondering, can you use logic in case statements? ie

switch($variable){
case($variable<10):
blah blah blah
}

View Replies !   View Related
Logic Failing, Simple If Else
Im trying to make this snippet of form validation allow the form to be optional.
Instead its failing as a requirement, Im sure it has something to do with the strlen function but i dont know how to change it. If spousename has a value and its length is less then 2, or is greater then 20 fail. Code:

View Replies !   View Related
Logic For Admin Panel
i want to develop an application. in which there are 4 pages aboutus , index, contectus , productlist. now what i want is that admin can able to make hide/show these pages according to it's need. now can any one tell me how to do that what logic should i have to apply for that. should i have to use database for that work or we can do it with ought database.

View Replies !   View Related
Template - Flawed Logic
I am developing a php site template. A single index page and the content changes depending on which link is clicked - pretty standard stuff I think and that part works quite well.

However, at the begining of each content page I intended to store the relevant $title and $keyword information, such that header info will change to include these.

Following is the basis of my template page [index.php]. page1.php would include the $title and $keyword variables. I have removed as much irrelevant code [banner, footer, sidebar etc.] as possible. Code:

View Replies !   View Related
Session And Cookie Logic
Would someone be kind enough to validate the logic in this code.

$sesscookie = $_COOKIE['name'];
if ($sesscookie == "") {
if (!session_id()) {
session_start();
$sess_id = session_id();
setcookie('name', $sess_id);
}
$sess_id = session_id();
}
else {
$sesscookie = session_id();
}

What I'm trying to do is ensure that I have a single session id stored somewhere - a cookie if possible, and in a database record. Assuming it is stored in a cookie, I want the cookie value NO MATTER if the actual session id is changed.

If the cookie is NOT set (some browser settings disallow this) then I'll retrieve the original value of the session_id from the database. That code is not displayed here.

View Replies !   View Related
Image Management Logic
I know there are hundreds of threads out there covering the code-side of uploading images to a database, but what I'm intereset in, is the logical part of how to manage images. I have a website with different projects. The amount of images per project varies between 3-12 images. There's also the option to add movies to a project I've managed to think of different ways how to manage the files. Upload all the images/movies into a single folder and tagging them with an unique id. Store the link to the file in the db.

Create a folder for each project and store the files within. Probably still needs unique id's to prevent same-name-file-conflicts. Therefore why bother putting it in different folders in the first place,Store the files in the table as a binary (is that the right description? me = noob). Does that work for movies? I've read threads not recommending this.

View Replies !   View Related
Design/logic Issue
basically, i have one form with a drop down box, say this box has values 1, 2, and 3. this form, like any other, is sent by clicking a submit button.

now if the user chooses value 1, i need to go to form_a, if the user chooses value 2, i need to go to form_b, and 3 is form_c.

how exactly do i do this, while still $_POST'ing the data to this next form. i have tried changing what goes in the action attribute in the <form> tag, but it doesnt seem to work.

any clues on this? i dont really need any code, im just kind of stuck on my design. can you use php to change the destination in the <form action"..."> tag?

do i need to use javascript to decide how to redirect the page?

i tried making my own redirect page based on the values that were passed from the first form, but i found that i could not get the header() function to redirect after i made a call to the database.

View Replies !   View Related
Correct Validation Logic In Forms
I have a question which have bothered me for a while - thats to do the validation when a form is submittted:

How can validation be done in the best way? I have come on the alternatives:

1- making the validation in the php after submitting the form
--> then you handle in the server level, but would the data that the user enters still exist when you redirect to the same page (probably globals is needed then)

--> how would the error messages be handled - would you redirect to a totally new page or the same the user came from?

2 - Using Javascript.
--> This I like because you directly apply messages at the instance data is entered.
--> But this is Client side - so its not a REAL validation.

I like the usability of 2) and the consistency of 1)

But what is the best practices?

View Replies !   View Related
Logic For Scrambled Word Solver
I am trying to write a script that will solve those "word scramble" puzzles in the newspaper. It would take the scrambled string and spit out every possible combination to the browser. However, I'm confused how to start writing this.

The first step I've done is exploded each letter from the string to an array. I'm stumped how to even begin this program, any ideas?

View Replies !   View Related
Complicated Pagination Logic Problem
'll try to explain this as clearly as possible, sorry if it's unclear.

You have in your directory /foo 42 images

You have in your database metadata for 30 out of those 42 images

You have to display all 42 images in the /foo directory whether they
have database metadata or not.

If any of the 42 images have metadata, you must display the metadata,
else, you don't.

With me so far? Good, it gets wild from here.

You have a requirement for pagination.

Your pagination limit is to only show 20 images at a time.

The only way I know how to do this is to get all of the images out of
the filesystem pertaining to /foo, all of the metadata out of the
database pertaining to /foo, and logically combine them (using
array_merge()) into a single resultset and display, metadata or not.

However, to paginate to the next page, you'll have to have had stuffed
THE ENTIRE RESULTSET into a $_SESSION variable and splice that.

That of course is not good. But what on earth else do I do? If I am not
to use $_SESSION, how would I paginate such an exotic resultset?

View Replies !   View Related
Further On My Fairly Simple Logic Problem
> You can pass parameters in the URL for a POSTed form:[color=blue]
>
> ## page2
> <form method="post" action="page3.php?data=$urlencoded_data">
> <input type="text" name="address">
> <input type="submit">
> </form>
>
> ## page3
> mail('your_address@example.com', 'form data with contact details',
> "Someone entered this data:

" .
> "{$_GET['data']}

" .
> "The user details are:
" .
> " address: {$_POST['address']}");[/color]

Thanks for all the previous help guys!

I'm halfway there, I think. I'm getting my POST data through to the
next page, but I'm not sure how or if I can use the URLENCODE command within
the form? Whereas I used to have the data passed on like so:

echo '<a href="mail.php?radiochoice=', urlencode($radiobutton),
'&radiomoderntrad=', urlencode($radiomoderntrad),
'&radiocoord=', urlencode($radiocoord),
'&radiopacking=', urlencode($radiopacking),
'&i1=', urlencode($item1),
'&i2=', urlencode($item2),
'&i3=', urlencode($item3),
'&i4=', urlencode($item4),
'&i5=', urlencode($item5),
'&i6=', urlencode($item6), ETC.

when I try to do a (obviously botched?!) cut and paste job to get the
following:

<form name="form1" method="post" action="finaltest.php?stevetest=",
urlencode($item1),' stevetest2=', urlencode($item2),'">
<p>

<input type="text" name="textfield">
</p>
<p>
<input type="submit" name="submit" value="Submit">
</p>
</form>?>

View Replies !   View Related

Copyright 2005-08 www.BigResource.com, All rights reserved