show resulting output on another page and send url link to email
hey people, i am trying to create a simple form, and would like the user to input some details on a form, when the user clicks the submit button, it should load another page showing the input details.
also is there any way of sending the url link of the webpage to an email address?
so basically i wanted the inputted values to be outputted in a tabular format in test2.php, and at the same time to send an email consisting the url of test2.php......so that both, (1) the user will see the results in a tabular format as soon as they click the submit button, and (2) and the company will also see the results via the url sent to the email address.
If you are trying to have the form submit, THEN have the data entered displayed on page 2 PLUS emailed to an email address, thats pretty easy. If this is what you want let me know and i'll post code for ya!
NOTE: When contacting me please have the following things ready:
Thread ID (This can be found in the URL of your thread)
Budget of Project
Methods of contacting you/your organization
Preferred method if many methods are provided
Any website information that you PM, Email, IM, or otherwise is strictly confidential and will not be disseminated, distributed, or copied in any way, shape or form.
lol sorry mlseim, basically i wanted the link to the second page sent to an email address so that the company can view the submitted data too ....
and yes jdswebservice, thats exactly what i want, however instead of the entered data displayed on the email address, i jus wanted the link of the SECOND page on the email address, so that member of staff within the company to which the website belongs to can view the entered data too by clicking the lnk
So, we can just post a plain contact page email script, but there's a lot more
that needs to be addressed ... which makes it hard for us to post a script.
What if they enter something wrong, or don't enter a particular box?
The form will need to have "validation", and tell them what's wrong either
on the 2nd page, or stay on the form and tell them.
What if a spammer decides to submit your form 1000 times using a spamming script?
The form will need some sort of captcha code or "is the user a human"?
Can ANYONE submit the form without any idea of who they are?
What if the user types it all out and submits it successfully, and then, oops, I put
the wrong address in there! Oh no ... how do I fix that? The user has to do the
form again and resubmit. But now, there are two emails sent. What if the recipient
only sees the first email (with the wrong address)?
What if the person submits the form and decides to add more items to their order?
They send another form? ... but the recipient gets two emails and may or may not
figure out if the person is adding to the previous order, or creating a new order.
This will be really confusing to the recipient?
Will the person who sent the form get some sort of confirmation showing the info
that they sent, and that the recipient has seen it? How will the person who sent
the form know that it was recieved?
See what I mean?
You have a lot more things to consider and decisions to make.
This just isn't a "send a form" script.
=========
Maybe each user needs to create a free account (register online).
Then, after confirming their email, they can log-in and fill-out any
orders that they wish. There are NO emails sent.
The recipient is the person (admin or owner) that accesses a webpage
showing ALL pending orders from anyone who has submitted an order.
Any changes to an order by the customer or client is updated
immediately in the database ... the owner sees that right away.
No more need to enter name and email ... because the user has logged-in.
That information has already been entered when they registered.
hey mlseim, yes this will all be done, i have only just started it, all i am just worried about at this point in time is if its possible to send the weblink of the SECOND page which will contain the filled in data, to an email address
Well, you COULD use the get method in your form(s), however this will be VERY unsecure. My suggestion is to do this. create the form, have it submit to page.2php. page2.php will then post that form to a database, and send a link to the email address provided with the ID of the entry in the database. then you create page3.php?id=x to read, view, and display the information to the people you want.
NOTE: When contacting me please have the following things ready:
Thread ID (This can be found in the URL of your thread)
Budget of Project
Methods of contacting you/your organization
Preferred method if many methods are provided
Any website information that you PM, Email, IM, or otherwise is strictly confidential and will not be disseminated, distributed, or copied in any way, shape or form.
hey mlseim, yes this will all be done, i have only just started it, all i am just worried about at this point in time is if its possible to send the weblink of the SECOND page which will contain the filled in data, to an email address
I would change the name of test2.php to something more descriptive. For the info to display on test2.php you need use the GET method to query the database. So the URL looks something like test2.php?client=27865. 27865 is the row ID that contains all the client info.
Do you have the database setup?
I recommend you study the php GET method and how it gets info from databases.
hey guys, no there is no database on this, basically i am creating an order form within the website of a meatshop, so basically a customer makes an order (they do not need to register), which involves inputting data on textboxes etc, and then it displays the results on another page, but i wanted some form of link of the other page on an email add....im not sure whether it is possible without having to create a database for it?
hey guys, no there is no database on this, basically i am creating an order form within the website of a meatshop, so basically a customer makes an order (they do not need to register), which involves inputting data on textboxes etc, and then it displays the results on another page, but i wanted some form of link of the other page on an email add....im not sure whether it is possible without having to create a database for it?
You need some sort of database to store and retrieve the info, and I recommend MySQL, I don't think you can do what you want without a database. MySQL is very easy top learn.
Razzy, may I ask if there is there a specific reason you're wanting to have a page with the users' submitted info on it?
Quote:
Originally Posted by jdswebservice
If you are trying to have the form submit, THEN have the data entered displayed on page 2 PLUS emailed to an email address, thats pretty easy. If this is what you want let me know and i'll post code for ya!
J-
I agree that this is a very easy method, and wouldn't even require a DB.
But if there is a specific reason you're needing a page complete with a url then the other posts are spot on. You need a DB in order to assign an id to each post in order to give you a unique url for each submission.
You are thinking that when a form is submitted to "test2.php" the script will
display the form data on the user's browser and then send an email to the business
with a link back to that page with the form data. So when the form data is displayed
on the user's browser, that is a "webpage", that can be linked back to from an email.
Is that what you think happens?
==============
If it is, you're not seeing it correctly.
When the form is filled out and they click submit, the form variables are
sent to the script called "test2.php". That script can send the form values
to any email and then display "Thank You for your order". You can send the
data to the business email AND the user's email (as a confirmation). There
is no "webpage" created, and there is no link back to any webpage.
There is no webpage period.
We're saying that the form variables should be written into a database and their
are no emails at all. The business continually checks the database for new orders.
The users can also check the database to see the status of their order(s).
hey stevenmw, when the user inputs the data, the second page shows shows the inputted data in a tabular format, the reason why i want a second page is for the user to see what he/she has inputted. and the link sent to the email is for the company to view the orders.
just like how form inputs are sent to email addresses with the use of php, im wondering if its possible to send that url to email without the database? if not then i gues im gna have to create a database